i am stuck with a code where i had to work with a html string to get raw html out of it.My html string looks like the following:
var string="<p>This is my textarea to be replaced with CKEditor.</p>
<pre>
<code class="language-bash">CKEDITOR.instances.editor1.getData()</code></pre>
<p> </p>"
need to strip the double quote to get the html elements and insert them in a div.like the following as raw element not enclosed by double quote
<p>This is my textarea to be replaced with CKEditor.</p>
<pre>
<code class="language-bash">CKEDITOR.instances.editor1.getData()</code></pre>
<p> </p>
and i don't want to use innerHTML property.Any help in this regard will be higly appreciated :)