Displaying 1 result from an estimated 1 matches for "sanitized_allowed_attribut".
Did you mean:
sanitized_allowed_attributes
2009 Jan 24
1
Rails sanitize method is stripping my anchors
Hi,
I have some html pages that are saved in DB and which require anchors
for quickly jumping inside the page. People can edit the page manually,
so in order to keep things clean I use Rails sanitize method to clean
the html before output. The problem is that it is stripping my anchors.
e.g: <h2 id=''team''>Our Team</h2> becomes <h2>Our Team</h2>
How can