Module Nanoc3::Helpers::HTMLEscape
In: lib/nanoc3/helpers/html_escape.rb

Contains functionality for HTML-escaping strings.

Methods

h   html_escape  

Public Instance methods

h(string)

Alias for html_escape

Returns the HTML-escaped representation of the given string. Only `&`, `<`, `>` and `"` are escaped.

@param [String] string The string to escape

@return [String] The escaped string

[Validate]