PHP RegExp and HTML tags attributes values etc...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello ppl,

I have a question about regex and html parsing.

I have the following code:
---
<p class=MsoNormal><font size=3 face="Comic Sans MS"><span lang=NL
style='font-size:12.0pt;font-family:"Comic Sans MS"'>&nbsp;</span></font></p>
---

It laks some quotemarks.
I want to change it to:
---
<p class="MsoNormal"><font size="3" face="Comic Sans MS"><span lang="NL"
style='font-size:12.0pt;font-family:"Comic Sans MS"'>&nbsp;</span></font></p>
---

So it will have " around the attribute values...
But i can't figure out how to do that :(.
Can anyone help me with this??

Thx in advance.
Kind Regards,
BlackDex

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux