Tag Archives: php

Removing Microsoft Word HTML in PHP

So I’ve been trying to figure out how to remove the html code from a string of data that MS Word adds to their code when exporting an htm file. Here’s what I found to be most successful although it may not be perfect in ALL instances. function cleanHTML($html) { /// <summary> /// Removes all read more »