I am in the middle of implementing a text editor in my Rails app. My text editor only outputs html. When I'm saving it to my database, I need to stringify it. And when I load the text from my database it needs to parse stringified html to normal html.
1) parse html -> stringified html
2) parse stringified html -> html
How can I do this in Rails app?