Module Kramdown::Utils::Html
In: lib/kramdown/utils/html.rb

Provides convenience methods for HTML related tasks.

Note that this module has to be mixed into a class that has a @root (containing an element of type :root) and an @options (containing an options hash) instance variable so that some of the methods can work correctly.

Methods

Public Instance methods

Convert the entity e to a string. The optional parameter original may contain the original representation of the entity.

This method uses the option entity_output to determine the output form for the entity.

Escape the special HTML characters in the string str. The parameter type specifies what is escaped: :all - all special HTML characters as well as entities, :text - all special HTML characters except the quotation mark but no entities and :attribute - all special HTML characters including the quotation mark but no entities.

Return the HTML representation of the attributes attr.

[Validate]