Forums

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

Velocity doesn't display nested XML code.

b
Contributor
April 9, 2012

Hi,

My custom model contains XML tags inside of attribute. If I want to display like that:

$content

I get noting. Content variable contains string: <myCUstomTAg/>

Is there any way to display XML escaped tags?

1 answer

1 accepted

1 vote
Answer accepted
Dieter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 9, 2012

did you try

$textUtils.htmlEncode($content)

b
Contributor
April 10, 2012

Actually I works for me like that: $textUtils.htmlEncode($content, false)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events