function strip_word_html($text){
$pattern = '/style=\\\".*?\\\"/';
$text = preg_replace($pattern, '', $text);
$pattern = '/class=\\\".*?\\\"/';
$text = preg_replace($pattern, '', $text);
$pattern = '/align=\\\".*?\\\"/';
$text = preg_replace($pattern, '', $text);
$pattern = '/lang=\\\".*?\\\"/';
$text = preg_replace($pattern, '', $text);
$pattern = '/nowrap=\\\".*?\\\"/';
$text = preg_replace($pattern, '', $text);
$pattern = '/width=\\\".*?\\\"/';
$text = preg_replace($pattern, '', $text);
$pattern = '/<o:p><\/o:p>/';
$text = preg_replace($pattern, '', $text);
$pattern = '/ *?(?=>)/';
$text = preg_replace($pattern, '', $text);
$pattern = '<span></span>';
$text = str_ireplace($pattern, '', $text);
return $text;
}