Inversion::
Escaping module
A mixin that adds configurable escaping to a tag class.
class MyTag < Inversion::Template::Tag include Inversion::Escaping def render( renderstate ) val = self.get_rendered_value return self.escape( val.to_s, renderstate ) end end
To add a new kind of escaping to Inversion
, add a escape_<formatname> method to this module similar to escape_html
.
Constants
- DEFAULT_ESCAPE_FORMAT
The fallback escape format
- URI_ENCODED_CHARACTERS
Unreserved characters from section 2.3 of RFC 3986 ALPHA / DIGIT / “-” / “.” / “_” / “~”
Public Class Methods
Inclusion callback; add Loggability if it isn’t already present
Public Instance Methods
Escape the ‘output` using the format specified by the given `render_state`’s config.
Escape the given ‘output` using HTML entity-encoding.
Escape the given ‘output` using the encoding specified in RFC3986 (URIs)