module Haml::Filters::Cdata
Surrounds the filtered text with CDATA tags.
Public Instance Methods
render(text)
click to toggle source
@see Haml::Filters::Base#render
# File lib/haml/filters.rb, line 249 def render(text) text = "\n#{text}" text.rstrip! text.gsub!("\n", "\n ") "<![CDATA[#{text}\n]]>" end