Browse Source

better unicode support in xmlify

pull/601/head
Zach Prezkuta 8 years ago
parent
commit
774a78dbde
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      include/text.php

+ 2
- 3
include/text.php 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 ) {


Loading…
Cancel
Save