Module: EscapeHTMLWithAngularXSS
- Defined in:
- lib/angular_xss/haml.rb
Overview
Haml 6+ It ditched most of is own helpers in favor of Haml::Util.escape_html github.com/haml/haml/blob/main/CHANGELOG.md#600 github.com/haml/haml/compare/v5.2.2…v6.3.0 github.com/haml/haml/blob/v6.3.0/lib/haml/util.rb
Instance Method Summary collapse
Instance Method Details
#escape_html(html) ⇒ Object
32 33 34 |
# File 'lib/angular_xss/haml.rb', line 32 def escape_html(html) super(AngularXss::Escaper.escape_if_unsafe(html)) end |