Our loading crew is using different WYSIWYG HTML editors to prepare an offers. Unofrtunatelly the result code is usually not optimized and it demands a lot of space in our db.
Example codes:
<ul style="font-size: 13.3333px;">
<li><span style="font-size: 10pt;">qwe</span></li>
<li><span style="font-size: 10pt;">asd</span></li>
<li><span style="font-size: 10pt;">zxc</span></li>
<li><span style="font-size: 10pt;">qwer</span></li>
<li><span style="font-size: 10pt;">asdf</span></li>
</ul>
or
<span style="font-size: 13.3333px;">lorem</span>
<div style="font-size: 13.3333px;"><br></div>
<div style="font-size: 13.3333px;">ipsum</div>
is there any useful lib/script which can optimize those styles before saving it to db?