I'm dealing with a rich text editor, but when I try to insert hmtl entities in my "contenteditable" div using jQuery.html() these entities get interpreted.
If I do:
<textarea><b>Hey, look.. this is how do yo make your text bold:</b>>b<&;{text}>/b<</textarea>
And trying to convert that textarea in a rich text editor using:
this.$editor.html($textarea.val());
What I expect:
Hey, look.. this is how do yo make your text bold:
<b>{text}</b>
What I get:
Hey, look.. this is how do yo make your text bold: {text}
Obviously, I cant use jQuery.text() in this case... Any ideas? Change my editor it's not a choice.
EDIT: Example, here: http://jsfiddle.net/nNuKk/3/