Include text saved from textarea but don't escape <br> tags

1,593 views
Skip to first unread message

Adam Parrish

unread,
Aug 22, 2012, 8:21:21 PM8/22/12
to ang...@googlegroups.com
I have a simple textarea that I am saving off to the database. When a user has a hard line feed in the text area I save that in the database as <br/>. 

Then when I read the JSON back to display the data the <br/> tags are visible in the text rather than being interpreted as breaks. Is there a better way to save multiple lines with hard line feeds and have them display with bindings?

Adam Parrish

unread,
Aug 22, 2012, 8:44:35 PM8/22/12
to ang...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages