vanderlee / phpSyllable

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

FEATURE: Handle UTF-8 in HTML #72

Closed alexander-nitsche closed 1 year ago

alexander-nitsche commented 1 year ago

Hi @vanderlee,

this PR is about finally handling the non-Latin, UTF-8 characters in Syllable::hyphenateHtml(). With this patch hyphenation in Syllable::hyphenateText() and Syllable::hyphenateHtml() behave the same and allow for example to hypehante html with entities or Cyrillic characters.

Greetings Alex

vanderlee commented 1 year ago

Thanks for the awesome work on this!