Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

replace " with double quote

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
shahab82
Smarty n00b


Joined: 18 Nov 2017
Posts: 4

PostPosted: Sat Nov 18, 2017 6:22 pm    Post subject: replace " with double quote Reply with 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
Code:
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Sat Nov 18, 2017 7:21 pm    Post subject: Reply with quote

Did you enabled automatic variable escaping?
Back to top
View user's profile Send private message
shahab82
Smarty n00b


Joined: 18 Nov 2017
Posts: 4

PostPosted: Sun Nov 19, 2017 7:12 am    Post subject: Reply with quote

Thanks Smile

This solution works.

Code:

: {$variable nofilter}.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP