End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
CGI::Escape#unescapeHTML
CGI.unescapeHTML(string) → string
ext/cgi/escape/escape.c
View on GitHub ↗
static VALUE
cgiesc_unescape_html(VALUE self, VALUE str)
{
StringValue(str);
if (rb_enc_str_asciicompat_p(str)) {
return optimized_unescape_html(str);
}
else {
return rb_call_super(1, &str);
}
}
Returns HTML-unescaped string.