I have a bunch of text in db that has tabs chars (\t
's) in it. I want it rendered it on the web page as intended by the author. What's the right way to do that?
In other words, I'm looking for tabs analog of simple_format
.
Doing <%= text.gsub("\t", "   ") %>
to achieve that doesn't seem right somehow. There has to be a more elegant railsy way.