Is it possible to have comments stay commented out when using
sanitize?
For example, I have this in my view:
<%= sanitize @description %>
and @description = “”
but sanitize converts:
to
<!-- end time -->
so the words 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 = ‘!–’, ‘–’