|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
shahab82 Smarty n00b
Joined: 18 Nov 2017 Posts: 4
|
Posted: Sat Nov 18, 2017 6:22 pm Post subject: replace " with double quote |
|
|
Hi,
I am using symphony with smarty.
The double quotes ("") getting replace with " automatically in smarty file.
I tried below solution but no sucess.
Code: |
var varname1={$SET|unescape:"htmlall"};
var varname1={html_entity_decode($SET|escape:'html':'UTF-8')}
var varname1={$SET||strip_tags:true}
var varname1={$SET|escape};
var varname1=["Customer Name"];
|
Any solution , please advice.
-Best Regards,
Shahab |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Sat Nov 18, 2017 7:21 pm Post subject: |
|
|
Did you enabled automatic variable escaping? |
|
Back to top |
|
shahab82 Smarty n00b
Joined: 18 Nov 2017 Posts: 4
|
Posted: Sun Nov 19, 2017 7:12 am Post subject: |
|
|
Thanks
This solution works.
Code: |
: {$variable nofilter}. |
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|