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
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/d90048a8-7a00-4bde-afbc-7410ce9f82eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.