Рег. выраж. для чистки word->html
function WordParse($Str)
{
$Search = array("'<(.*?)\r\n(.*?)>'s",
"'%20'",
"'<html.*?<body.*?>'is",
"'<div.*?>|</div>'is",
"'<\!--.*?-->'s",
"'<\!\[.*?\]>'s",
"'<style.*?/style>'is",
"'<o\:p>|</o\:p>'is",
"'<span.*?>|</span>'is",
"'class=\w*'is",
"'<img.*?src=\\\\\"(.*?)\\\\\".*?>'is",
"'style=\\\\\'.*?\\\\\''is",
"'</body>|</html>'is");
$Replace = array("<\\1 \\2>","","","","","","","","","","<img src=\'\\1\'>","","");
return preg_replace($Search,$Replace,$Str);
}
есть ли дополнения? может кто занимался