oh I think if you use http://api.rubyonrails.org/classes/ActionView/Helpers/TagHelper.html#method-i-tag it will do the html_safe and escaping stuff for you, it may look nicer that way