mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 03:46:39 +00:00
. misspell function _twig_convert_encoding -> twig_convert_encoding
This commit is contained in:
@@ -582,7 +582,7 @@ function _twig_escape_js_callback($matches)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// \uHHHH
|
// \uHHHH
|
||||||
$char = _twig_convert_encoding($char, 'UTF-16BE', 'UTF-8');
|
$char = twig_convert_encoding($char, 'UTF-16BE', 'UTF-8');
|
||||||
|
|
||||||
return '\\u'.substr('0000'.bin2hex($char), -4);
|
return '\\u'.substr('0000'.bin2hex($char), -4);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user