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
178 stars 42 forks source link

SVG xlink:href throws an error #72

Open mkkeck opened 5 years ago

Potherca commented 5 years ago

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

mkkeck commented 5 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.