Remove HTML tag attributes

Except src (img tags) and href (anchor tags)

<table style="width: 300px; text-align: center;" border="1" cellpadding="5">
					<tbody>
						<tr>
						  <th width="75"><strong>Name</strong></th>
						  <th colspan="2"><span style="font-weight: bold;">Telephone</span></th>
						</tr>
						<tr>
							<td>John</td>
							<td><a href="tel:0123456785">0123 456 785</a></td>
							<td><img src="images/check.gif" alt="checked" /></td>
						</tr>
					</tbody>
				</table>
				
<table>
					<tbody>
						<tr>
							<th><strong>Name</strong></th>
							<th><span>Telephone</span></th>
						</tr>
						<tr>
							<td>John</td>
							<td><a href="tel:0123456785">0123 456 785</a></td>
							<td><img src="images/check.gif"/></td>
						</tr>
					</tbody>
				</table>
				

This option will leave you the HTML structure but it will remove every attribute (classes, styles and other properties).

Removes classes, inline styles and other tag attributes except the src attribute of image tags and href attributes of anchor tags. We have separated these features because there are individual options to remove the links and images from the HTML source. We decided to implement this feature this way because people never want to end up with a stripped <img /> element or a link tag without reference in their code.

April Fools' Day is coming:

geek prank
GeekPrank.com

Please support our free startup with a share.

Donate

Thank you! smiley