yklxmas Posted May 13, 2008 Share Posted May 13, 2008 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 More sharing options...
jlhaslip Posted May 15, 2008 Share Posted May 15, 2008 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 More sharing options...
killboy Posted May 15, 2008 Share Posted May 15, 2008 BTW, this topic should be moved to HTML/XHTML forums. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.