"Downgrading" HTML
| From: | Matt Neimeyer | Date: | Thu, 16 Sep 2010 18:07:07 +0000 |
| Subject: | "Downgrading" HTML | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-308134@lists.php.net to get a copy of this message | ||
I know I could possibly hack something together using the Tidy
libraries... (maybe...) but are there any existing php libraries /
projects that already have the ability to take some HTML and
"downgrade" the version of HTML being used.
One example: turn this...
<p style="font-weight: bold">Blah</p>
... into ...
<p><b>Blah</b></p>
This is for an eReader I love but is long out of production and the
converter tool only works with HTML 3.2
Thanks in advance.
Matt