How to get only all HTML tags to list from string using javascript or jquery? : <p>How to get list with only all HTML tags from string? We can use javascript, jquery or any C# library or api.
We have one big string:</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;
qwe
&lt;button type="button"&gt;Click Me!&lt;/button&gt;
&lt;a&gt;xyz&lt;/a&gt;
&lt;button type="button"/&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>I want to get list = {<code>&lt;html&gt;,&lt;head&gt;,&lt;body&gt;,&lt;button type="button"&gt;,&lt;button&gt;,&lt;a&gt;,&lt;button&gt;</code>}
I need to count how many times occurs each HTML tag in string and show 3 the most common.</p>
