I have a html like this
<div><font
color=”green”>ABC</font>A’ssd”fsdf</div>
i need to change the above as
<div><font
color=\”green\”>ABC</font>A’ssd”fsdf</div>
that is \” appears only in html component , not in text data.
in php how?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to do this, you also want to escape the
"in the text, or it will break your Javascript syntax just the same. The answer is to encode it in the JSON format:And seriously, don’t use
<font>. Learn CSS. 🙂