module Erubi

Constants

CGI
ESCAPE_TABLE

:nocov:

FREEZE_TEMPLATE_LITERALS
MATCH_METHOD
RANGE_FIRST
RANGE_LAST
SKIP_DEFINED_FOR_INSTANCE_VARIABLE
VERSION

Public Class Methods

h(value) click to toggle source

:nocov: Escape characters with their HTML/XML equivalents.

# File lib/erubi.rb, line 34
def self.h(value)
  CGI.escapeHTML(value.to_s)
end