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}
有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top