The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Blueprint template at:rawxhtml not working

Alex Mitchell
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Hans Pesata
Contributor
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

TAGS
AUG Leaders

Atlassian Community Events