<%=h %>

S

Sushrut Sathe

Why this syntex is use <%=h ...... %>
I can't get any help of this syntex, can u plz help me out.
 
R

Robert Dober

h() sanatizes the output of text to prevent malicious code being
inserted into your app via user submitted content
See: http://www.railsbrain.com/api/rails-2.2.2/doc/index.html?a=3DM000118= &name=3Dhtml_escape
Andrew I guess your reply what was OP wanted, it was definitely not
what he asked ;)
Let him give that too, who knows

<%=3Dh ... %>
is equivalent to
<%=3D h( ... ) =3D>

you might get better answers on the Rail Mailing List on these topics.
But you did still well to post here (too) it is an ERB question in
fact but h is a Rails helper IIRC.

Cheers
Robert
--=20
Toutes les grandes personnes ont d=92abord =E9t=E9 des enfants, mais peu
d=92entre elles s=92en souviennent.

All adults have been children first, but not many remember.

[Antoine de Saint-Exup=E9ry]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,172
Messages
2,570,933
Members
47,472
Latest member
blackwatermelon

Latest Threads

Top