<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Liferay 7.2 CE, FreeMarker unwanted output of SVG markup</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117713187" />
  <subtitle>Liferay 7.2 CE, FreeMarker unwanted output of SVG markup</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117713187</id>
  <updated>2026-04-04T15:25:23Z</updated>
  <dc:date>2026-04-04T15:25:23Z</dc:date>
  <entry>
    <title>RE: Liferay 7.2 CE, FreeMarker unwanted output of SVG markup</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117735852" />
    <author>
      <name>Alessandro Candini</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117735852</id>
    <updated>2019-11-11T07:50:00Z</updated>
    <published>2019-11-11T07:50:00Z</published>
    <summary type="html">&lt;a href="https://issues.apache.org/jira/browse/FREEMARKER-122"&gt;Guys at Freemarker say that this behaviour is not due to the template language&lt;/a&gt;, so it should be a post elaboration after template rendering operated by Liferay.&lt;br /&gt;Does anyone know how to disable this unwanted post processing and obtain what I have written in my template without any changes?&lt;br /&gt;Thanks.</summary>
    <dc:creator>Alessandro Candini</dc:creator>
    <dc:date>2019-11-11T07:50:00Z</dc:date>
  </entry>
  <entry>
    <title>Liferay 7.2 CE, FreeMarker unwanted output of SVG markup</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117713186" />
    <author>
      <name>Alessandro Candini</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117713186</id>
    <updated>2019-11-08T17:06:56Z</updated>
    <published>2019-11-08T17:06:56Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Inside a Web Content Template, I have the following snippet:&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;svg&amp;gt;&amp;lt;use xlink:href="icons.svg#star"&amp;gt;&amp;lt;/use&amp;gt;&amp;lt;/svg&amp;gt;
&lt;/code&gt;&lt;/pre&gt;which FreeMarker elaborate to this:&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;svg&amp;gt;&amp;lt;path fill="currentColor" d="M104 224H24c-13.255 0-24 ..."&amp;gt;&amp;lt;/path&amp;gt;&amp;lt;/svg&amp;gt;
&lt;/code&gt;&lt;/pre&gt;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 &lt;em&gt;&amp;lt;use&amp;gt;&lt;/em&gt; tag.&lt;br&gt;How to avoid this?&lt;br&gt;Thank you.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Alessandro Candini</dc:creator>
    <dc:date>2019-11-08T17:06:56Z</dc:date>
  </entry>
</feed>
