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 07:23 PM.
|