freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dániel Dékány (Jira) <>
Subject [jira] [Commented] (FREEMARKER-122) SVG <use> tag unwanted output
Date Sun, 10 Nov 2019 22:16:00 GMT


Dániel Dékány commented on FREEMARKER-122:

FreeMarker doesn't do such magic, it's done by something else. It really just outputs everything
as is, unless it's a FreeMarker tag or interpolation.

> SVG <use> tag unwanted output
> -----------------------------
>                 Key: FREEMARKER-122
>                 URL:
>             Project: Apache Freemarker
>          Issue Type: Bug
>          Components: engine
>         Environment: Linux Ubuntu 16.04
>            Reporter: Alessandro Candini
>            Priority: Major
> I'm using Liferay 7.2 CE and Inside a Web Content Template, I have the following snippet:
>  {{<svg><use xlink:href="icons.svg#star"></use></svg>}}
> and the Freemarker engine elaborates it to:
>  {{<svg><path fill="currentColor" d="M104 224H24c-13.255 0-24 ..."></path></svg>}}
> As you can see, I get the content of my SVG icon, but this is not what I want: I would
like that Freemarker will produce as output the {{<use>}} tag I've put inside my template,
not a re-elaboration of it.
> How to obtain this?
> Thank you.

This message was sent by Atlassian Jira

View raw message