Is it possible to have comments stay commented out when using sanitize?
For example, I have this in my view:
<%= sanitize @description %>
and @description = "<!-- end time -->"
but sanitize converts:
<!-- end time --> to <!-- end time -->
so the words <!-- end time --> actually shows up on the website.
anyone know if it's possible to tell sanitize to leave html comments alone?
I tried adding this to environment.rb but no luck: config.action_view.sanitized_allowed_tags = '!--', '--'