Module Webby::Helpers::TagHelper
In: lib/webby/helpers/tag_helper.rb

Provides methods to generate HTML tags programmatically. By default, they output XHTML compliant tags.

Methods

Included Modules

ERB::Util

Constants

BOOLEAN_ATTRIBUTES = Set.new(%w(disabled readonly multiple))

Public Instance methods

Returns an escaped version of html without affecting existing escaped entities.

Examples

  escape_once("1 > 2 & 3")
  # => "1 < 2 & 3"

  escape_once("<< Accept & Checkout")
  # => "<< Accept & Checkout"

[Validate]