class Nokogiri::HTML4::Builder
Nokogiri::XML::Builder documentation.
The HTML builder inherits from the XML builder, so make sure to read the
puts builder.to_html
end
}
}
}
doc.text “Hello world”
doc.span.bold {
doc.body(:onload => ‘some_func();’) {
doc.html {
builder = Nokogiri::HTML4::Builder.new do |doc|
span tag with a class of “bold” that has content of “Hello world”.
Create an HTML document with a body that has an onload attribute, and a
== Synopsis:
documentation.
documentation for Nokogiri::XML::Builder before reading this
similar to the Nokogiri::XML::Builder. In fact, you should go read the
Nokogiri HTML builder is used for building HTML documents. It is very
##
def to_html
##
def to_html @doc.to_html end