Jump to content

htmltidy


yklxmas

Recommended Posts

Hello all,I need some help on htmltidy.I tried to tidy up the following html<b><p>123</p><div>234</div><div>345</div></b>but after tidy, it came out<p><b>123</b></p><div>234</div><div>345</div>when it should be like<p><b>123</b></p><div><b>234</b></div><div><b>345</b></div>I've just visited http://infohound.net/tidy/ and it works but when I tried it in my own script, it just doesn't want to work. I've also tried using regex to catch but it doesn't work perfectly.Is it the configuration problem? or a tidy extension problem?Many thanks in advance

Link to comment
Share on other sites

What doctype are you using?The more current DTD's will likely not handle the bold tag properly since that is for styling, which is not allowed in Strict doctypes.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...