mercredi 22 octobre 2014

How to select and replace HTML attributes in string using regex and PHP?


Vote count:

0




I want to change



{"name":"column","content":"<h3 class="open-sans" style="font-size: 2em; line-height:2em;" >FORM TITLE</h3>"}


to this ( replace double quote for HTML attributes with single quote )



{"name":"column","content":"<h3 class='open-sans' style='font-size: 2em; line-height:2em;' >FORM TITLE</h3>"}


any help is much appreciated.



asked 1 min ago







How to select and replace HTML attributes in string using regex and PHP?

Aucun commentaire:

Enregistrer un commentaire