Hello,
I have an edit-text box that, when typed into, populates the note field of a $:/search tiddler.
That value is then part of a list filter. It works great except when I type double quotes (") in the edit-text box -- that obviously breaks the list filter syntax by introducing the extra quote(s).
Is there a way to escape double quotes for search or ignore (trim) them at some stage? I've already tried experimenting with pragmas but this did not have any effect (perhaps the syntax is wrong):
\rules except "
\rules except "
Here's my code (I've skipped the edit-text part because that's irrelevant):
<$set name=searchterm value={{$:/search!!note}}>
<$list filter="[tag[item]search:title[$(searchterm)$]]">
<<currentTiddler>>
<br>
</$list>
</$set>
As an example, this is what the list filter 'sees' when the string "test" is typed into the edit-text box -- a case of nested double quotes is a recipe for disaster ;)
<$list filter="[tag[item]search:title["test"]]">
Thank you in advance for your suggestions!
Best regards,
Hubert