Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Liferay 7.2 CE, FreeMarker unwanted output of SVG markup
Alessandro Candini, modified 5 Years ago.
Regular Member
Posts: 130
Join Date: 10/17/15
Recent Posts
Inside a Web Content Template, I have the following snippet:
How to avoid this?
Thank you.
<svg><use xlink:href="icons.svg#star"></use></svg>
which FreeMarker elaborate to this:<svg><path fill="currentColor" d="M104 224H24c-13.255 0-24 ..."></path></svg>
In practice I get the content of my svg icon, but this is not what I want: I would like that FreeMarker will get as output the <use> tag.How to avoid this?
Thank you.
Alessandro Candini, modified 5 Years ago.
Regular Member
Posts: 130
Join Date: 10/17/15
Recent Posts
Guys at Freemarker say that this behaviour is not due to the template language, so it should be a post elaboration after template rendering operated by Liferay.
Does anyone know how to disable this unwanted post processing and obtain what I have written in my template without any changes?
Thanks.
Does anyone know how to disable this unwanted post processing and obtain what I have written in my template without any changes?
Thanks.