How would you remove all html attributes with regex except the type="A", type="1", and type="I" attributes?
The following html:
<ol type="A" lang="en-CA" style="margin-bottom: 0in; line-height: 100%">
<li><span>Text</span></li>
<li><span>More text</span></li>
</ol>
<ol type="I" style="font-weight: bold;">
<li><span>Text</span></li>
<li><span>More text</span></li>
</ol>
Should become:
<ol type="A">
<li><span>Text</span></li>
<li><span>More text</span></li>
</ol>
<ol type="I">
<li><span>Text</span></li>
<li><span>More text</span></li>
</ol>