Hi Sven, On Thu, Jun 25, 2015 at 4:08 PM, Sven Meier <[email protected]> wrote:
> Hi all, > > currently AjaxRequestHandler escapes CDATA as follows: > > Strings.replaceAll(str, "]", "]^") > > decode() in wicket-ajax-jquery.js does the inverse on processing of the > ajax response: > > replaceAll(text, "]^", "]") > > But the recommended approach to handle nested CDATA sections is to split > each "]]>" with an additional CDATA end/start: > Any reference to the recommendation? > > Strings.replaceAll(str, "]]>", "]]" + "]]><![CDATA[" + ">"); > Did you skip some part(s) here? Why "]]" + "]]><![CDATA[" + ">" is not just "]]]]><