Hi All,
I have written a HTML editor using Javascript/DHTML which generates HTML but typically it is stupid Microsoft HTML which leaves off the " marks around attributes. I want the generated HTML to be validated by W3C so I need to add in the " marks using a function.
ie/
$string = '<a href=page1.htm target=new>';
some regular expression...
$newstring = '<a href="page1.htm" target="new">';
Anyone got any ideas on the best way to do this?
TIA
Mike