Remove css tags all at once??
Remove css tags all at once??
- Started
- Last post
- 7 Responses
- keiTai
Hi all,
Client sent me a .html from a .doc and says "he, the font isn't the same" please make it the same font.
So how does one remove all css tags from .doc files???
- doesnotexist0
need more info...
- fugged0
please tell your client that exporting HTML from Microsoft Word is totally unacceptable, and he should just stab himself in the eye with a fork.
- +1doesnotexist
- he just got one eye (guess you already have spoken too him)keiTai
- kld0
fire this cient now
- doctor0
With a little scripting you could easily find all the inline styles and edit or remove them.
In PHP you could use the file_get_contents() function and a regular expression like this to search for the styles: style=\"([a-z0-9... ])+\"$
(The regexp could be prettier, but it does the job -- I just slapped it together in a sec)