Module: EZML::Filters::Cdata
- Includes:
- Base
- Defined in:
- lib/ezml/filters.rb
Instance Method Summary collapse
Methods included from Base
#compile, included, #internal_compile, #render_with_options
Instance Method Details
#render(text) ⇒ Object
132 133 134 |
# File 'lib/ezml/filters.rb', line 132 def render(text) "<![CDATA[#{"\n#{text.rstrip}".gsub("\n", "\n ")}\n]]>" end |