i have String Like As below :
alert(tempstr);//"<b> Testing </b>"
now I want create a ckeditor node with this string
NewElem=CKEDITOR.dom.element.createFromHtml(tempstr);
or
NewElem.setHtml(tempstr);
Both are Assigning just as a Text.
may be using replace (< to < ) and (> to>) is possible.my thought is that is not a proper code. Any Other proper code to Assign as Html string?.
Both methods accept HTML, not an encoded HTML. So you should find a way to decode HTML in
tempstr. The easiest solution is to use replace method: