diff options
author | Thomas BrĂ¼derli | 2010-10-19 08:14:43 +0000 |
---|---|---|
committer | Thomas BrĂ¼derli | 2010-10-19 08:14:43 +0000 |
commit | 3835b993ce2f720c59e7067861f924d2705ec1e1 (patch) | |
tree | f27a9e45a077da1f922ee4d408ae9c0ab07fb9fa /itjs.class | |
parent | 8f4fad79ee980710da07badeb42fd2ee0c58ae74 (diff) | |
download | itools-3835b993ce2f720c59e7067861f924d2705ec1e1.tar.gz itools-3835b993ce2f720c59e7067861f924d2705ec1e1.tar.bz2 itools-3835b993ce2f720c59e7067861f924d2705ec1e1.zip |
Replace special double-quotes as in it_html::latinize
Diffstat (limited to 'itjs.class')
-rw-r--r-- | itjs.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -91,7 +91,7 @@ function encode($values) else if (!is_array($value)) { $quote = (strval(intval($value)) === strval($value)) ? "" : '"'; - $string = strtr($value, array("\0" => '\\0', "\x93" => '\\"',"\x94" => '\\"', '"' => '\\"', "</"=>"<\\/", "\n" => '\\n', "\r" => '\\r', "\t" => '\\t', "\\" => '\\\\')); + $string = strtr($value, array("\0" => '\\0', "\x84" => '\\"', "\x93" => '\\"',"\x94" => '\\"', '"' => '\\"', "</"=>"<\\/", "\n" => '\\n', "\r" => '\\r', "\t" => '\\t', "\\" => '\\\\')); $string = $GLOBALS['itjs_defaultconfig']['latin2unicode'] ? preg_replace('/([\xa0-\xff])/e', 'sprintf("\\u%04x", ord("\\1"))', $string) : $string; $result .= $quote . $string . $quote; } |