vanderlee / phpSyllable

PHP Syllable splitter/counter and Hyphenator for text and HTML. Multi-language, customisable, cached and fast!
http://vanderlee.github.io/phpSyllable/
117 stars 80 forks source link

Possibility to omit Doctype for hyphenateHtml() #36

Closed benjaminpick closed 4 years ago

benjaminpick commented 5 years ago

This introduces a new method setLibxmlOptions loadHTML() will be called with these options. So, for example:

$syllable->setLibxmlOptions(LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);

will omit the Doctype and the html tags.