[Feature request] One workaround is to use --clean yes and then remove the <style> tag manually. But a built-in way for tidy to remove inline styles would be quicker and would result in a smaller file size.
Use case: when exporting a spreadsheet as HTML, the program tries to preserve the original appearance using a lot of style information resulting in an odd-looking HTML table.
Input
<!DOCTYPE html>
<html>
<title>Testing</title>
<body>
<table>
<tr>
<td style="font-weight:bold">Hello whirl!</td>
<td style="color:red">Goodbye!</td>
</tr>
</table>
</body>
</html>
Desired output
<!DOCTYPE html>
<html>
<title>Testing</title>
<body>
<table>
<tr>
<td>Hello whirl!</td>
<td>Goodbye!</td>
</tr>
</table>
</body>
</html>
[Feature request] One workaround is to use
--clean yesand then remove the<style>tag manually. But a built-in way fortidyto remove inline styles would be quicker and would result in a smaller file size.Use case: when exporting a spreadsheet as HTML, the program tries to preserve the original appearance using a lot of style information resulting in an odd-looking HTML table.
Input
Desired output