Method: CGI::Escape#escapeHTML
- Defined in:
- escape/escape.c
#escapeHTML(string) ⇒ String
Returns HTML-escaped string.
333 334 335 336 337 338 339 340 341 342 343 344 |
# File 'escape/escape.c', line 333 static VALUE cgiesc_escape_html(VALUE self, VALUE str) { StringValue(str); if (rb_enc_str_asciicompat_p(str)) { return optimized_escape_html(str); } else { return rb_call_super(1, &str); } } |