mirror of
https://github.com/friendica/friendica
synced 2024-11-20 11:03:42 +00:00
better unicode support in xmlify
This commit is contained in:
parent
b6bc7daadf
commit
774a78dbde
1 changed files with 2 additions and 3 deletions
|
@ -175,9 +175,8 @@ if(! function_exists('xmlify')) {
|
||||||
function xmlify($str) {
|
function xmlify($str) {
|
||||||
$buffer = '';
|
$buffer = '';
|
||||||
|
|
||||||
$len = mb_strlen($str);
|
$str_array = preg_split('//u', $str, -1, PREG_SPLIT_NO_EMPTY);
|
||||||
for($x = 0; $x < $len; $x ++) {
|
foreach($str_array as $char) {
|
||||||
$char = $str[$x];
|
|
||||||
|
|
||||||
switch( $char ) {
|
switch( $char ) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue