Mutilated1
February 16th, 2005, 12:14 PM
I have several large HTML documents that were created in Front Page. I want to remove all the junk that Frontpage puts in the tags and be left with regular plain vanilla HTML.
In other words I want to take all the tags like this:
<TD
style="PADDING-LEFT: 0.75pt; PADDING-BOTTOM: 0in; WIDTH: 1in; PADDING-TOP: 0.75pt; HEIGHT: 12.75pt"
vAlign=bottom noWrap width=96>
And trim out everything except this:
<TD>
I know I can use preg_replace, but my problem is that I can't quite seem to hit upon the right mixed pattern to make the replacement work
Can any of you guys give me a hint ?
In other words I want to take all the tags like this:
<TD
style="PADDING-LEFT: 0.75pt; PADDING-BOTTOM: 0in; WIDTH: 1in; PADDING-TOP: 0.75pt; HEIGHT: 12.75pt"
vAlign=bottom noWrap width=96>
And trim out everything except this:
<TD>
I know I can use preg_replace, but my problem is that I can't quite seem to hit upon the right mixed pattern to make the replacement work
Can any of you guys give me a hint ?