title: remove HTML commands from string titanium
body: <p>I have string like this:</p>
  
  <pre><code>&lt;div&gt; This is a test &lt;/div&gt; 
  </code></pre>
  
  <p>How can i remove the <code>&lt;div&gt;</code> and <code>&lt;/div&gt;</code> or other commands?</p>
  
  <p>I have this for sum characters:</p>
  
  <pre><code>var FinalSTR = mySTR.replace(/&lt;(?:.|)*?&gt;/gm, '');
  </code></pre>
  
  <p>But it does not work for the commands that have <code>&lt;&gt;</code> or <code>&lt;/&gt;</code> in the text</p>