minvws / nl-rdo-zammad-api-export

This can be used to export tickets from Zammad to PDF. Each ticket will have its own PDF file.
European Union Public License 1.2
6 stars 0 forks source link

Replace attachment links of article #207

Closed ricklambrechts closed 5 months ago

ricklambrechts commented 7 months ago

In favor of #205 I have tested the inline attachments. Currently when inline attachments are exported the orignial attachment urls are still in the body of the articles. This results in that the inline images are not shown, the can be shown by clicking directly on the attachment but you do not see it in line.

With this PR the inline attachments are shown inline.

The filenames are sanitized and replaced before saving the json and rendering the html.

Shown in Zammad:

image

Old article part in the HTML export: image

New article part in the HTML export: image