scrivo / highlight.php

A port of highlight.js by Ivan Sagalaev to PHP
BSD 3-Clause "New" or "Revised" License
695 stars 45 forks source link

Fix UTF8 support in splitCodeIntoArray() #76

Closed allejo closed 4 years ago

allejo commented 4 years ago

The splitCodeIntoArray() utility function did not support UTF-8 and would break things. Considering that the rest of this library supports UTF-8, our split utility should too.