# ActionView::Helpers::SanitizeHelper.sanitize docs

**URL:** <https://www.ruby-forum.com/t/actionview-sanitizehelper-sanitize-docs/120397>\
**Category:** Rails\
**Created:** [November 16, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/actionview-sanitizehelper-sanitize-docs/120397 "2007-11-16T15:11:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 16, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/actionview-sanitizehelper-sanitize-docs/120397/1 "2007-11-16T15:11:51Z")

</div>

Hello,

First sentence of sanitize() method doc says: “This sanitize helper  
will html encode all tags and strip all attributes that aren’t  
specifically allowed.”

But sanitize(“

# foo
 should html encode”) ==  
“
# foo
 should html encode”.  
Shouldn’t it html encode to \<bar\> ?

–  
Jacek
