Question

I am using Smarty Template Engine and I need imperavi to not strip anything thats inside curly braces. So the code below would show:

<strong>{$entity->fullname|capitalize}</strong>

like

{$entity->fullname|capitalize}

in bold text but wouldn't convert it into

{$entity-&gt;fullname|capitalize}
Était-ce utile?

La solution

Check the split_tag in php, it removes HTML tags for text (you can specify which tags to remove): http://ca3.php.net/strip_tags

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top