Re: [PHP] Removing empty paragraphs from HTML file using simple_html_dom.php

2010-09-18 Thread Simon J Welsh
On 18/09/2010, at 6:21 PM, Geoffrey van Wyk wrote: > Hi All, > > I want to remove empty paragraphs from an HTML document using > simple_html_dom.php. I know how to do it using the DOMDocument class, but, > because the HTML files I work with are prepared in MS Word, the DOMDocument's > loadHTM

[PHP] Removing empty paragraphs from HTML file using simple_html_dom.php

2010-09-17 Thread Geoffrey van Wyk
Hi All, I want to remove empty paragraphs from an HTML document using simple_html_dom.php. I know how to do it using the DOMDocument class, but, because the HTML files I work with are prepared in MS Word, the DOMDocument's loadHTMLFile() function gives this exception "Namespaces are not defined