Why this syntex is use <%=h … %>
I can’t get any help of this syntex, can u plz help me out.
On Mon, Jun 22, 2009 at 11:17 AM, Sushrut S.[email protected]
wrote:
Why this syntex is use <%=h … %>
I can’t get any help of this syntex, can u plz help me out.Posted via http://www.ruby-forum.com/.
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=M000118&name=html_escape
Andrew T.
http://ramblingsonrails.com
http://MyMvelope.com - The SIMPLE way to manage your savings
On Mon, Jun 22, 2009 at 11:25 AM, Andrew
Timberlake[email protected] wrote:
See: http://www.railsbrain.com/api/rails-2.2.2/doc/index.html?a=M000118&name=html_escape
Andrew I guess your reply what was OP wanted, it was definitely not
what he asked
Let him give that too, who knows
<%=h … %>
is equivalent to
<%= h( … ) =>
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
Toutes les grandes personnes ont d’abord été des enfants, mais peu
d’entre elles s’en souviennent.
All adults have been children first, but not many remember.
[Antoine de Saint-Exupéry]