Skip to content
Tags

,

raw, h and html_safe

September 16, 2011

I have not spent a lot of time trying to figure out everything with regards to these helpers but this railscast will help with regards to that:

http://railscasts.com/episodes/204-xss-protection-in-rails-3

What I think i got out of that is
h removes html tags
html_safe sets a boolean in string so that the string is considered as html save
raw considers a string to be html

Advertisements

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: