_ to_jsonã®Safari対ç ãã®éã®ã³ã¼ãã ã¨ãSafariã§æååããã¦ãã¾ã£ãã ãã£ã±ã\uè¨æ³ã使ããªãã¨ãããªãããã ã class String JSON_ESCAPED = { "\010" => '\b', "\f" => '\f', "\n" => '\n', "\r" => '\r', "\t" => '\t', '"' => '\"', '\\' => '\\\\' } def to_json return '"' + gsub(/[\010\f\n\r\t"\\]/) { |s| JSON_ESCAPED[s] }.gsub(/([\xC0-\xDF][\x80-\xBF]| [\xE0-\xEF][\x80-\xBF]{2}| [\xF0-\xF7][\x80-\xBF]{3})+/ux) { |s| s.unpack("U*").pack("n*").
{{#tags}}- {{label}}
{{/tags}}