Currently, I am working on a project that involves numerous page numbers marked using the span class. Below is an example of this markup:
<p>Cillacepro di to tem endelias eaquunto maximint eostrum eos dolorit et laboria estiati buscia ditiatiis il et et quia autatemolore sus eum rernatur sequid quam lam con nihillatem ipsus dipsum ute simus.<span class=”pagenum”><a name=”Page_4” id=”Page_4”>[Pg 4]</a></span>Cillacepro di to tem endelias eaquunto maximint eostrum eos dolorit et laboria estiati buscia ditiatiis il et et quia autatemolore sus eum rernatur sequid quam lam con nihillatem ipsus dipsum ute simus.</p>
I am in search of a solution that can automatically remove the entire span class pagenum syntax. This is so that when I open the HTML file in Microsoft Word, the text does not show [pg 4]. With the document being over 1000 pages long, manually deleting the span class using Word's Find feature would be extremely time-consuming. Any assistance with this matter would be greatly appreciated.