title: Automatically adding mark tag using javascript?
body: <p>How may I automatically add a mark tag to HTML content? I'd like to highlight the word "milk", as follows:</p>
  
  <p>Word : <strong>milk</strong></p>
  
  <pre><code>&lt;mark&gt;milk&lt;/mark&gt;
  </code></pre>
  
  <hr>
  
  <p><strong>Example :</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  &lt;p&gt;Do not forget to buy milk today.&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>Like that :</strong> </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  Do not forget to buy &lt;mark&gt;milk&lt;/mark&gt; today.
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>