Skip to content

Possibility to omit Doctype for hyphenateHtml()#36

Merged
vanderlee merged 2 commits intovanderlee:masterfrom
yellowtree:libxmlOptions
Dec 10, 2019
Merged

Possibility to omit Doctype for hyphenateHtml()#36
vanderlee merged 2 commits intovanderlee:masterfrom
yellowtree:libxmlOptions

Conversation

@benjaminpick
Copy link
Copy Markdown
Contributor

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.

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.
@vanderlee vanderlee merged commit 1e12a7c into vanderlee:master Dec 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants