title: How to convert string values from variable to HTML in Javascript
body: <p><strong>How to change string values to HTML in Javascript.</strong></p>
  
  <p><strong>ISSUE</strong></p>
  
  <p>My form renders HTML code as a string, which i don't have a control.</p>
  
  <p>it is rendering dynamically.</p>
  
  <h2>Now i need to change that string content to render as HTML</h2>
  
  <p>I have these following values in var <strong>checking</strong> as a string</p>
  
  <pre><code>var checking = formEl.innerHTML;
  </code></pre>
  
  <p>String values in var <strong>checking</strong>  are</p>
  
  <pre><code> &lt;thead id="updateContent"&gt;
    &lt;tr&gt;
      &lt;th style="width:25%" class="spacingInHeader"&gt;Years of Expierence &lt;/th&gt;
      &lt;th style="width:50%" class="spacingInHeader"&gt;Salary&lt;/th&gt;
      &lt;th style="width:25%" class="spacingInHeader"&gt;Actions&lt;/th&gt;
      &lt;input type="hidden" id="editRowIndex" value=""&gt;    
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr id="divUserList"&gt;
      &lt;td class="dynamicRow"&gt; &lt;input style="width:100px!important;" type="text" id="totalExperience"&gt; &lt;/td&gt;
      &lt;td class="dynamicRow"&gt; &lt;input type="text" id="salaryForThisPosition"&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr id="alf-id29"&gt;
      &lt;td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(197, 197, 197);"&gt;1&lt;/td&gt;
      &lt;td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(197, 197, 197);"&gt;1&lt;/td&gt;
      &lt;td style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(197, 197, 197);"&gt;&lt;a class="addLink" style="margin-right:10px" href="#" onclick="javascript:editRow(this);return false;"&gt; Edit &lt;/a&gt; &lt;a href="#" class="addLink" onclick="javascript:deleteRow(this);return false;"&gt; Delete &lt;/a&gt; &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p>i want to render these string values as HTML</p>
  
  <p><strong>More Explanation</strong></p>
  
  <h2>i have values in <strong>checking</strong> variable</h2>
  
  <p>In that string values, i have a id <strong>updateContent</strong>, i want to render these string values as HTML</p>
  
  <p>Is there any way i can achieve this.</p>
  
  <p>Thanks in advance.</p>