Thomas J.S.: Tidy löscht Bilder

Beitrag lesen

Hallo,

Nach dem Einfügen von Bildern und Speichern des Word-Dokuments als Webseite wird das Dokument von Tidy gecheckt und der HTML-Code bereinigt.

Das wird schwierig werden, denn
"word-2000: bool
If set to yes, Tidy will go to great pains to strip out all the surplus stuff Microsoft Word 2000 inserts when you save Word documents as "Web pages". The default is no. Note that Tidy doesn't yet know what to do with VML markup from Word, but in future I hope to be able to map VML to SVG."

Und Word speichert Bilder so:
[if !vml]><img ... ><![endif]>

Es würde schon reichen, wenn du vor Tidy mit was anderem einfach alle "<![if !vml]>" entfernen würdest, dann läßt Tidy die Bilder drinn. Vielleicht kannst du das mit einer eigenen Konfigurationsdatei für Tidy lösen.

Grüße
Thomas