LukeMadhanga / PHPDocumentParser

A PHP parser for getting the text from a .doc, .docx, .rtf or .txt file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

p tag not removed

fabien4444 opened this issue · comments

Hello (again),

i test with DOCX file and remains P tags.
You could remove in adding the following in your parseZipped function
$content = preg_replace('/<p\b[^>]>(.?)</p>/i', '\1', $content);

Thanks