A little preg_replace help!
Posted: Wed Jun 24, 2009 12:10 pm
I've got some really ugly HTML I'm writing a script to fix using PHP... It's generated by Microsoft Word! D:
I don't think it should be done either, but someone is paying me to do it! I finished just about everything, except my image-display problem, and I'm taking guesses as to how I should fix it...
So, the idea I'm currently working at, at the minute is removing this "V:shapes" crap I've never heard of before...
Here's what it looks like:
How do I write a preg_replace code to fix this?
I don't think it should be done either, but someone is paying me to do it! I finished just about everything, except my image-display problem, and I'm taking guesses as to how I should fix it...
So, the idea I'm currently working at, at the minute is removing this "V:shapes" crap I've never heard of before...
Here's what it looks like:
Code: Select all
<!--[if gte vml 1]>
BAD STUFF
<![endif]--><![if !vml]>
GOOD STUFF
v:shapes="_x0000_i1026"
GOOD STUFF
<![endif]>