Closed (fixed)
Project:
Office HTML filter
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
7 Mar 2010 at 23:17 UTC
Updated:
22 Jul 2010 at 20:00 UTC
From Johannes Wilm: it looks like office now adds <xml> containers as well as the usual <style> containers to the <head> portion of documents. Style tags are simply commented out, but since these xml tags are non-compliant (not allowed to nest in <head> according to W3C) I think we should delete them completely. The following additional rule has been suggested:
$text = preg_replace("/<xml>(.*?)<\/xml>/", "", $text);
I will test and consider this.
Comments
Comment #1
danepowell commentedHere is test input:
Comment #2
danepowell commentedThis has been added in the latest dev release (should roll in the next 12 hours). Try that out and let me know if it's not working for you.