Possible to hide html comments using sanitize in rails 2.0?

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 = ‘!–’, ‘–’

anyone have any ideas? i’ve been stuck on this for a few days and we
can’t launch till this is done :frowning:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs