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

danepowell’s picture

Here is test input:

danepowell’s picture

Status: Active » Fixed

This 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.