Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Blueprint template at:rawxhtml not working

Alex Mitchell May 1, 2017

In the hello-blueprint example provided by Atlassian (https://bitbucket.org/atlassian/hello-blueprint.git), there is an example of a variable containing xhtml content:

<at:var at:name="xhtmlString" at:rawXhtml='true' />

This is defined in the context provider (HelloContextProvider.java) like so:

context.put("xhtmlString", "<em>Hello I am emphasised</em>");

However, when I create a page using this template, the content is encoded, so the page storage format contains:

<p>&lt;em&gt;Hello I am emphasised&lt;/em&gt;</p>

Is there something else that needs to be done to get the at:rawXhtml=true attribute to work correctly?

1 answer

1 vote
Hans Pesata January 5, 2018

Hi!

You need to take care of case-sensitivity with at:raxhtml

<at:var at:name="xhtmlString" at:rawxhtml='true' />

Regards,
Hans

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events