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