View Single Post
Old 01-01-2013, 08:19 PM   #467
Sergey Dubinets
Junior Member
Sergey Dubinets began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Dec 2012
Device: Kindle
To: DiapDealer about quoteattr().
quoteattr() doesn't change " to ' and back in attribute value if you mean this. If attribute value doesn't have " quoteattr() would put it into "" without additional encoding. The same with '. If both ' and " are present in the value quoteattr() would replace " to " and use " around.

If you wish for some reason always put attribute values into "" you can escape ". There is no need to escape ' in this case.

Last edited by Sergey Dubinets; 01-01-2013 at 08:23 PM.
Sergey Dubinets is offline   Reply With Quote