opal / opal-spec

Deprecated Spec library for Opal

Home Page:http://opalrb.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

html escape error messages in browser formatter

elia opened this issue · comments

What is the current recommended way to escape html in ruby? Does activesupport offer something here?

Ok, our ERB implementation should have this. ERB is now in our stdlib, so it is easy enough for opal-spec to just require('erb') and have it working. I will add this once we add the Util module to erb.

commented

👍 I really need this.

Great! How do I use this now? I notice "h" and "html_escape" are not available in my templates