public Method

XmlMarkup.cdata!(text)

Insert a CDATA section into the XML markup.

For example:

xml.cdata!("text to be included in cdata")
    #=> <![CDATA[text to be included in cdata]]>

Source Code

# File builder/xmlmarkup.rb, line 259
def cdata!(text)
  _ensure_no_block block_given?
  _special("<![CDATA[", "]]>", text, nil)
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.