To solve a problem with double quotes breaking my code in a text area, I found a solution online to convert the double quote character to an html entity (") before storing it in the database. The solution then instructed to use $(#comments).html(data.comments).text() to display the text and have the " display as a double quote. This all works.
My actual question is what is the .text() doing at the end of the statement, or is it not needed?
Thanks