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

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