Then an almost-bow from me!
Something is weird there, as this is—to my mind—procedure output and CSS text, neither of which should object to \'. And it works in my simplified test, when run in Edit/Preview mode:
FooBar.json (400 Bytes)
I didn’t try to follow all the complexities of how you built this, so I’m missing something important. But how did that \' end up in a filter expression?
And clearly it’s better to fix this at the source than after the fact. I didn’t know if t was being used for multiple purposes, but if you do want it clean, I’m still betting that appending \' would work. If you need t only for this, then of course you should clean it up.
Once I had mine working, I looked again at the conversation., knowing that I’d seen something about trimming quotes, but not finding it. But I don’t do well with screenshots of source code and even worse with videos of it changing, so I’m guessing I saw it in the video.
I’m glad this helped. Am I right that this is designed to do something interesting with Edit/Preview mode for tiddlers with a specific tag? If so, I’m intrigued by what you use this for, as it’s fairly rare for me to turn on preview mode. Or did I make unwarranted assumptions by inlining this in my tiddler?
In any case…
Six, huh? I knew there was something odd about you!