# html\_escape method

**URL:** <https://discuss.rubyonrails.org/t/html-escape-method/16934>\
**Category:** rubyonrails-talk\
**Created:** [August 13, 2007, 12:43pm UTC](https://discuss.rubyonrails.org/t/html-escape-method/16934 "2007-08-13T12:43:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Wang](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@Michael\_Wang](https://discuss.rubyonrails.org/u/Michael_Wang)\
**Post date:** [August 13, 2007, 12:43pm UTC](https://discuss.rubyonrails.org/t/html-escape-method/16934/1 "2007-08-13T12:43:21Z")

</div>

Vishvanathan Kuppusamy wrote:

> Hi,
> 
> I need to use the html\_escape function in my project.And I had tired the html\_escape or h function in the view.
> 
> example: \<%= h "\< Hello \>" %\>
> 
> Result:
> 
> \< Hello \>
> 
> But I am not get any html escaped characters for \< and \>.
> 
> Is there any special steps include in my project?

Did you actually view the source for that page?
