phptal / PHPTAL

PHP Template Attribute Language — template engine for XSS-proof well-formed XHTML and HTML5 pages
http://phptal.org
GNU Lesser General Public License v2.1
175 stars 43 forks source link

SVG xlink:href throws an error #72

Open mkkeck opened 4 years ago

Potherca commented 4 years ago

Could you provide us with an example of the code that triggers the error?

mkkeck commented 4 years ago

Okay here's a simple sample code:

<svg class="svg-icon"><use xlink:href="#icon-menu" /></svg>

This works:

<svg class="svg-icon" tal:content='structure string:<use xlink:href="#icon-menu" />'></svg>

But for large amount of inline SVG icons or references this would be really ugly or overhead.