public Method

XmlBase.text!(text)

Append text to the output target. Escape any markup. May be used within the markup brakets as:

builder.p { |b| b.br; b.text! "HI" }   #=>  <p><br />HI</p>

Source Code

# File builder/xmlbase.rb, line 80
def text!(text)
  _text(_escape(text))
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.