Mark Ng <mark at markng.me.uk> 2008年4月11日 12:36:03 >$html = tidy_repair_string($html,array('output-xhtml' => true, >'numeric-entities' => 'true', )); was what I was using - does it work >for you ? I must have been getting tired last night. I'm sure I tried that. But today it's handling everything I can throw at it. My test rig is here http://www.voidstar.com/xfnexplorer -- Julian Bond E&MSN: julian_bond at voidstar.com M: +44 (0)77 5907 2173 Webmaster: http://www.ecademy.com/ T: +44 (0)192 0412 433 Personal WebLog: http://www.voidstar.com/ skype:julian.bond?chat No Wife, No Horse, No Moustache