Yay, silly question time.
So I have an untrusted string that I simply want to show as text in an html page. All I need to do is escape the chars '<
' and '&
' as html entities.
The less fuss the better. I'm using utf8 and don't need no other stinking entities for accented letters and so on.
Is there anything built-in in ruby or rails, or should I roll my own?