Module Hpricot::Builder
In: lib/hpricot/builder.rb

Methods

<<   build   concat   doctype   head   html_tag   set   tag!   text   text!   xhtml_strict   xhtml_transitional  

Public Class methods

Public Instance methods

<<(string)

Alias for text

concat(string)

Alias for text

Builds a head tag. Adds a meta tag inside with Content-Type set to text/html; charset=utf-8.

Every HTML tag method goes through an html_tag call. So, calling div is equivalent to calling html_tag(:div). All HTML tags in Hpricot‘s list are given generated wrappers for this method.

If the @auto_validation setting is on, this method will check for many common mistakes which could lead to invalid XHTML.

Create a tag named tag. Other than the first argument which is the tag name, the arguments are the same as the tags implemented via method_missing.

Write a string to the HTML stream without escaping it.

Write a string to the HTML stream, making sure to escape it.

Builds an html tag with XHTML 1.0 Strict doctype instead.

Builds an html tag. An XML 1.0 instruction and an XHTML 1.0 Transitional doctype are prepended. Also assumes :xmlns => "www.w3.org/1999/xhtml", :lang => "en".

[Validate]