Class Sanitize
In: lib/sanitize.rb
lib/sanitize/config/restricted.rb
lib/sanitize/config/basic.rb
lib/sanitize/config/relaxed.rb
lib/sanitize/version.rb
lib/sanitize/config.rb
lib/sanitize/transformers/clean_cdata.rb
lib/sanitize/transformers/clean_element.rb
lib/sanitize/transformers/clean_comment.rb
Parent: Object

Methods

clean   clean   clean!   clean!   clean_node!   clean_node!   new  

Classes and Modules

Module Sanitize::Config
Module Sanitize::Transformers
Class Sanitize::Error

Constants

REGEX_PROTOCOL = /\A([^\/]*?)(?:\:|&#0*58|&#x0*3a)/i   Matches an attribute value that could be treated by a browser as a URL with a protocol prefix, such as "http:" or "javascript:". Any string of zero or more characters followed by a colon is considered a match, even if the colon is encoded as an entity and even if it‘s an incomplete entity (which IE6 and Opera will still parse).
VERSION = '2.0.3'

Attributes

config  [R] 

Public Class methods

Returns a sanitized copy of html, using the settings in config if specified.

Performs Sanitize#clean in place, returning html, or nil if no changes were made.

Sanitizes the specified Nokogiri::XML::Node and all its children.

Returns a new Sanitize object initialized with the settings in config.

Public Instance methods

Returns a sanitized copy of html.

Performs clean in place, returning html, or nil if no changes were made.

Sanitizes the specified Nokogiri::XML::Node and all its children.

[Validate]