Html_escape method

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?

Vishvanathan Kuppusamy wrote:

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?


Michael W.

Michael W. wrote:

Vishvanathan Kuppusamy wrote:

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?


Michael W.

Dear Wang,

Thank you for your reply. The html escape characters are availabe in
that source page.

Have a nice day.