title: How to display UI5 sap.ui.core.HTML. setContent is not working
body: <p>I am trying to display a simple HTML content using sap.ui.core.HTML. But I am getting a syntax error in browser. Below is my code and also attached error image. An example of XML view with dynamically setting the content would be greatly helpful. </p>
  
  <p>Thanks,
  Srini.</p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
      &lt;meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/&gt;
  
      &lt;script src="resources/sap-ui-core.js"
              id="sap-ui-bootstrap"
              data-sap-ui-libs="sap.m,sap.ui.commons"
              data-sap-ui-theme="sap_bluecrystal"&gt;
      &lt;/script&gt;
  
  
      &lt;script&gt;
      var oHtml = new sap.ui.core.HTML("l1"); 
      oHtml.setContent("&amp;lt;h1&amp;gt; This is the simple&amp;lt;/h1&amp;gt; ",true);
  
  
      //Create a panel instance
      var oPanel = new sap.ui.commons.Panel();
      //Add something to the panel's content area
      oPanel.addContent(oHtml);
      //Attach the panel to the page
      oPanel.placeAt("content");
  
  
      &lt;/script&gt;
  
      &lt;/head&gt;
       &lt;body class="sapUiBody" role="application"&gt;
           &lt;div id="content"&gt;&lt;/div&gt;   
        &lt;/body&gt;
     &lt;/html&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/nkngb.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nkngb.jpg" alt="Error"></a></p>