There are a lot of unnecessary tags that need to be deleted from an HTML file which should be done using an UltraEdit script.
The example HTML file below contains the information which tags to delete.
The example HTML file below contains the information which tags to delete.
Code: Select all
<html>
<head>
<title>EXAMPLE</title>
</head>
<body>
<p class="indent">EXAMPLE FILE</p>
<p>Below are IDs. These references should not be deleted.</p>
<p class="indent">Example <a id="rref1" href="#ref1">1</a></p>
<p class="indent">Example <a id="rref2" href="#ref2">2</a></p>
<p class="indent">Example <a id="rref3" href="#ref3">3</a></p>
<p class="indent">Example <a id="rref4" href="#ref4">4</a></p>
<p class="indent">Example <a id="rref5" href="#ref5">5</a></p>
<p>These are useless tags. Opening and closing tags should be deleted together.</p>
<p><b>Aaa</b>
should be just
Aaa</p>
<p><i>Bbb</i>
should be just
Bbb</p>
<p><u>Ccc</u>
should be just
Ccc</p>
<p class="indent">Example <a id="rref6" href="#ref6">6</a>
should be just
Example 6
because there is no matching ID.</p>
<p>There are many types of tags like figure link table link that will be deleted.</p>
<p><a href="#fig4">figure 4</a>44
should be
figure 444</p>
<p><a href="#tab6">Table 678</a>85
should be
Table 67885</p>
<p class="indent">Example <a id="rref7" href="#ref7">7</a></p>
<p class="indent">Example <a id="rref8" href="#ref8">8</a></p>
<p class="indent">Example <a id="rref9" href="#ref9">9</a></p>
<h2>References</h2>
<ul class="reflist">
<li id="ref1">Link 1</li>
<li id="ref2">Link 2</li>
<li id="ref3">Link 3</li>
<li id="ref4">Link 4</li>
<li id="ref5">Link 5</li>
</ul>
</body>
</html>