mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
Only process HTML inside Word xml documents
This commit is contained in:
parent
16bafa78b8
commit
8f5f334762
@ -359,9 +359,9 @@ abstract class bo_merge
|
|||||||
|
|
||||||
//echo $content;die();
|
//echo $content;die();
|
||||||
break;
|
break;
|
||||||
|
case 'application/xmlWord.Document': // Word 2003*/
|
||||||
case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': // ms office 2007
|
case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': // ms office 2007
|
||||||
case 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet':
|
case 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet':
|
||||||
case 'application/xml':
|
|
||||||
$replace_tags = array(
|
$replace_tags = array(
|
||||||
'b','strong','i','em','u','span'
|
'b','strong','i','em','u','span'
|
||||||
);
|
);
|
||||||
@ -639,9 +639,9 @@ abstract class bo_merge
|
|||||||
'<table>','<tr>','<td>',
|
'<table>','<tr>','<td>',
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
case 'application/xmlWord.Document': // Word 2003*/
|
||||||
case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': // ms office 2007
|
case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': // ms office 2007
|
||||||
case 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet':
|
case 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet':
|
||||||
case 'application/xml':
|
|
||||||
$replace_tags = array(
|
$replace_tags = array(
|
||||||
'<b>','<strong>','<i>','<em>','<u>','<span>','<ol>','<ul>','<li>',
|
'<b>','<strong>','<i>','<em>','<u>','<span>','<ol>','<ul>','<li>',
|
||||||
'<table>','<tr>','<td>',
|
'<table>','<tr>','<td>',
|
||||||
|
Loading…
Reference in New Issue
Block a user