module Roda::RodaPlugins::H
The h plugin adds an h
instance method that will HTML escape the input and return it.
The following example will return “<foo>” as the body.
plugin :h route do |r| h('<foo>') end
Constants
- CGI
-
:nocov:
- ESCAPE_HTML
-
A Hash of entities and their escaped equivalents, to be escaped by h().
- ESCAPE_HTML_PATTERN
-
A Regexp of HTML entities to match for escaping.