app developer singapore,singapore web design,web development singapore,singapore web design services,mobile application development singapore,mobile game developer singapore,web development company singapore,singapore mobile app developer,ios developer singapore,mobile developer singapore,website designer singapore,mobile app development singapore,developers in singapore,mobile apps development singapore,app development singapore,web design singapore,web designer singapore,mobile app developer singapore,ruby on rails developer singapore,android developer singapore,singapore app developer,mobile apps singapore,web application singapore,website development singapore,mobile application developer singapore,design agency singapore,singapore mobile application developer,graphic designer in singapore,web design services singapore,web design company singapore,singapore web development,ios app development singapore,design firms in singapore,website developer singapore,developer in singapore,website design singapore,singapore website design

Ruby on Rails 3 and escaped HTML

Rails 3 assumes that everything is NOT html safe (a change of opinion from Rails 2). Now, all strings are html escaped by default:

<%= h some_string %>

is now the same as

<%= some_string %>

To unescape the HTML (i.e you already know that the string is OK to render out), you need to mark it as html_safe or use keyword raw :

<%= some_string.html_safe %>
<%=raw some_string %>

Malcare WordPress Security