My attempt to string map [ to the corresponding html code have failed,
like:
string map " {[} {[} " $descr
string map { "[" "[" } $descr
Also tried to escape the [, but to no success.
How can it be done?
On 02 May 2024 12:22:33 GMT, Luis Mendes wrote:
Upon further investigation, it seems that the problem doesn't happen
because of the [, but because of quotes.
I could already do the string map mentioned in the previous post.
If I try `set descr "\"changed\": false"
it breaks wapp.
The error returned is:
ERROR: extra characters after close-quote.
On Thu, 2 May 2024 14:01:12 -0000 (UTC), Rich wrote:
Luis Mendes <luisXXXlupeXXX@gmail.com> wrote:Wapp doens't break, but then the " is not interpreted back to a "
On 02 May 2024 12:22:33 GMT, Luis Mendes wrote:
Upon further investigation, it seems that the problem doesn't happen
because of the [, but because of quotes.
I could already do the string map mentioned in the previous post.
If I try `set descr "\"changed\": false"
it breaks wapp.
The error returned is:
ERROR: extra characters after close-quote.
What if you escape actual quotes into the html " escape?
string map [list \" """] $your_variable
when rendered in html.
I've substituted " by ' and it works, although not as accurate.
Thank you.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 498 |
Nodes: | 16 (2 / 14) |
Uptime: | 05:46:58 |
Calls: | 9,821 |
Files: | 13,757 |
Messages: | 6,190,556 |