Only process HTML inside Word xml documents

This commit is contained in:
Nathan Gray 2011-08-17 15:47:05 +00:00
parent 16bafa78b8
commit 8f5f334762

View File

@ -359,9 +359,9 @@ abstract class bo_merge
//echo $content;die();
break;
case 'application/xmlWord.Document': // Word 2003*/
case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': // ms office 2007
case 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet':
case 'application/xml':
$replace_tags = array(
'b','strong','i','em','u','span'
);
@ -639,9 +639,9 @@ abstract class bo_merge
'<table>','<tr>','<td>',
);
break;
case 'application/xmlWord.Document': // Word 2003*/
case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': // ms office 2007
case 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet':
case 'application/xml':
$replace_tags = array(
'<b>','<strong>','<i>','<em>','<u>','<span>','<ol>','<ul>','<li>',
'<table>','<tr>','<td>',