--- !ruby/object:RI::MethodDescription 
aliases: 
- !ruby/object:RI::AliasName 
  name: j
block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: A utility method for escaping HTML entities in JSON strings. This method is also aliased as <tt>j</tt>.
- !ruby/struct:SM::Flow::P 
  body: "In your ERb templates, use this method to escape any HTML entities:"
- !ruby/struct:SM::Flow::VERB 
  body: "  &lt;%=j @person.to_json %&gt;\n"
- !ruby/struct:SM::Flow::H 
  level: 4
  text: "Example:"
- !ruby/struct:SM::Flow::VERB 
  body: "  puts json_escape(&quot;is a &gt; 0 &amp; a &lt; 10?&quot;)\n  # =&gt; is a \\u003E 0 \\u0026 a \\u003C 10?\n"
full_name: ERB::Util#json_escape
is_singleton: false
name: json_escape
params: (s)
visibility: public
