Hi,
I'm writing a lot of user macros and stumble upon this one problem every now and then:
I have no idea how to escape double quotes properly. In this specific case I'm writing a macro that holds Bob Swifts run&cli plugins, where quotes are needed. Here's a code example:
#set($globalHelper = $action.getHelper())
#set ($update = $globalHelper.renderConfluenceMacro("{run:replace=status:green:Lorem ipsum?:radio::green::yellow::red|titleRun=lorem!}
{cli:profile=confluence|hideOutput=false}
--action storePage --space xxx --title "yyy" --content "zzz"
{cli}
Status aktualisiert.
{run}
"))
The part within the {cli-stuff makes the problems.
I tried single quotes, escaping with backslash...even HTML entities, nothing is working properly. With quotes like above I get an error message when using the macro (of course), when escaping the values are set exactly with the chars I used to escape.
I'm really hoping there's a solution for this 