php - Smarty error: modifier 'unescape' is not implemented -


i want smarty show html variable content part of html file, use "unescape" modifier show here:

<div id="add">{if $add}{$add|unescape:"html"}{/if}</div> 

but get:

fatal error: smarty error: [in xxx.html line 20]: [plugin] modifier 'unescape' not implemented (core.load_plugins.php, line 118) in xxx/inc/lib/smarty/smarty.class.php on line 1095 

my plugin directory in correct place:

smarty$ ls config_file.class.php  smarty.class.php  smarty_compiler.class.php  debug.tpl  error_log  internals  plugins 

what can wrong , how can want?

try dealing via php:

<div id="add">     {if $add}         {php}             echo html_entity_decode($add);         {/php}     {/if} </div> 

you can play arround htm_entity_decode function fit needs, or can use htmlspecialchars_decode() or mb_convert_encoding() smarty unascape function suggests.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -