1
0
Fork 0

better unicode support in xmlify

This commit is contained in:
Zach Prezkuta 2013-02-05 23:02:13 -07:00
parent b6bc7daadf
commit 774a78dbde

View file

@ -175,9 +175,8 @@ if(! function_exists('xmlify')) {
function xmlify($str) {
$buffer = '';
$len = mb_strlen($str);
for($x = 0; $x < $len; $x ++) {
$char = $str[$x];
$str_array = preg_split('//u', $str, -1, PREG_SPLIT_NO_EMPTY);
foreach($str_array as $char) {
switch( $char ) {