This project has moved. For the latest updates, please go here.

Cleaning <td> tags

Topics: User Forum
Feb 18, 2010 at 7:59 PM

Here is the code that is created by MS Word 2007 when I save as a filtered HTML document:

<td width=47 style='width:35.55pt;border-top:none;border-left:none;
  border-bottom:solid #BFBFBF 1.5pt;border-right:solid #BFBFBF 1.5pt;
  background:#F2F2F2;padding:0in 3.5pt 0in 3.5pt;height:13.0pt'>
  <p class=MsoNormal align=center style='margin-bottom:0in;margin-bottom:.0001pt;
  lang=DE style='font-size:9.0pt;line-height:120%;font-weight:normal'>0,75</span></p>
What I need to do is strip out the attributes in the opening <td tag, remove the 
<p> element entirely, and end up with this:  <td>0,75</td> when I'm done.  I was
advised on ASP.NET forums to use this tool, but it is becoming increasingly obvious
to me that there is a lot that I need to learn to do before I can use it effectively.
So, not only am I asking how to resolve my tag problem, I also need to know what I need
to study and learn to actually use this tool everyone is raving about.