title: How to avoid writing HTML tags in javascript
body: <p>In my application, I sometimes have to create elements dynamically, so I create them in javascript, but it make it hard for maintenance.</p>
  <p>For example:</p>
  <p><img src="https://i.stack.imgur.com/0Ki50.png" alt="enter image description here" /></p>
  <p>The above image is the information window when I click a point in the map, and in our application we have a similar requirement, we use javascript to create the whole DOM.</p>
  <p>I do not think this is a good idea, any suggestion?</p>