class Rouge::Formatters::HTML

def escape_special_html_chars(value)

Experimental RBS support (using type sampling data from the type_fusion project).

def escape_special_html_chars: (String value) -> String

This signature was generated using 109 samples from 2 applications.

special characters replaced with their escaped counterparts.
Returns either the given `value` argument string as is or a new string with the

a substitution is imminent.
a substitution occurs. This method however invokes `String#gsub` only if
`String#gsub` will always return a new string instance irrespective of whether

HTML from this formatter.
A performance-oriented helper method to escape `&`, `<` and `>` for the rendered
def escape_special_html_chars(value)
  return value unless value =~ ESCAPE_REGEX
  value.gsub(ESCAPE_REGEX, TABLE_FOR_ESCAPE_HTML)
end