<span id="span1" contenteditable="true">this span is editable & awesome</span>
If I do $("#span1").html(), it returns this span is editable & awesome. I’m trying to save the new value of contenteditables in the DB, and I want to save them as-is, not encoded at all.
How can I make it so that $("#span1").html() returns this span is editable & awesome and not this span is editable & awesome ? Same goes for if I have two spaces, e.g., this span is editable & awesome and great (two spaces before and gets converted to ).
Give this a try: