Module: Hamlit::Utils
- Defined in:
- lib/hamlit/utils.rb,
ext/hamlit/hamlit.c
Class Method Summary collapse
Class Method Details
.escape_html ⇒ Object
83 84 85 86 87 |
# File 'ext/hamlit/hamlit.c', line 83
static VALUE
rb_escape_html(RB_UNUSED_VAR(VALUE self), VALUE value)
{
return escape_html(to_s(value));
}
|
.escape_html_safe(html) ⇒ Object
5 6 7 |
# File 'lib/hamlit/utils.rb', line 5 def self.escape_html_safe(html) html.html_safe? ? html : escape_html(html) end |