class Nokogiri::XML::CDATA
@see Nokogiri
@private
Public Instance Methods
content_without_cdata_tokens()
click to toggle source
removes the start and stop markers for cdata
# File lib/html2haml/html.rb, line 232 def content_without_cdata_tokens content. gsub(/^\s*<!\[CDATA\[\n/,""). gsub(/^\s*\]\]>\n/, "") end
to_haml(tabs, options)
click to toggle source
@see Html2haml::HTML::Node#to_haml
# File lib/html2haml/html.rb, line 225 def to_haml(tabs, options) content = parse_text_with_interpolation( erb_to_interpolation(self.content, options), tabs + 1) "#{tabulate(tabs)}:cdata\n#{content}" end