I'm using Atlassian Confluence (woe is me).
I have an {sql}
macro inside a groovy
macro in a wiki markup block. Now, the SQL selects some strings which look like Foo[Bar]
. The results wiki page auto-linkifies the bar, i.e. you get
FooBar
which is not what I want. I tried something like
SELECT REPLACE(REPLACE(name, '[', '\['), ']', '\]') FROM mytable;
but that triggered an error, while
SELECT REPLACE(REPLACE(name, '[', '\\['), ']', '\\]') FROM mytable;
didn't trigger an error but also did not help. What can I do?
Foo![Bar]
? Some wiki syntaxes use an exclamation point for escape – Blayze