I have text area,where user can enter some description.I need save this input with linebreaks to database.User also can enter some html tags,but this tags should be as plain text.
For example user enter this text:
a b(click enter)
c d <p>f</p>
What is the best way save this text to database.
1. "a b<br/>c d <p>f</p>"
2. "a b \r\n c d <p>f</p>"
3. "a b <br/>c d <p>f</p> "
It will be displayed as not HTML.