123456789_123456789_123456789_123456789_123456789_

Module: CGI::Escape

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Extended In:
Defined in: ext/cgi/escape/escape.c

Instance Method Summary

Instance Method Details

CGI.escapeHTML(string) ⇒ String

Returns HTML-escaped string.

[ GitHub ]

  
# File 'ext/cgi/escape/escape.c', line 83

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);
    }
}