Code Comments
Programming Forum and web based access to our favorite programming groups.Is there a way to have smarty automatically replace all html entites in
variable in a template?
Ie
Code:
$smarty->assign("someVar", "One & one");
Template
{$someVar}
Would become
One & one?
Post Follow-up to this message{$someVar|escape:"htmlall"}
http://smarty.php.net/manual/en/lan...fier.escape.php
Jake Stride wrote:
> Is there a way to have smarty automatically replace all html entites in
> variable in a template?
>
> Ie
>
> Code:
>
> $smarty->assign("someVar", "One & one");
>
> Template
>
> {$someVar}
>
> Would become
>
> One & one?
>
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.