instance method
CGI::EscapeExt#escapeHTML
CGI.escapeHTML(string) → string
ext/cgi/escape/escape.c
View on GitHub ↗
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);
}
}
Returns HTML-escaped string.