-
Bug
-
Resolution: Fixed
-
Minor
-
Email Extension Plugin 2.39, Token Macro 1.10, Jenkins 1.580.2. Windows Server 2012
I have a job that sends an HTML e-mail with the email-ext-plugin.
The content is configured as such :
${FILE, path="MyFile.html"}
Where MyFile.html is generated from a Python script.
There is an apostrophe in the content of the file. Before the latest update to email-ext-plugin it was displayed "'". Now it is displayed "'" in the email client (tested on OWA and Outlook).
The change seems to be related to this line : https://github.com/jenkinsci/email-ext-plugin/blob/master/src/main/java/hudson/plugins/emailext/plugins/CssInliner.java#L78
The added .escapeMode(Entities.EscapeMode.xhtml)) changes the apostrophe to it's ampersand escaped version.
There is probably a good reason why this line was modified in the first place, but I wonder if there would be a way to make it work on my end. Maybe make the escaping mode configurable?
Thank you
- is duplicated by
-
JENKINS-27004 email-ext escapes html to xml
- Resolved
-
JENKINS-27147 Apostrophes are escaped as '
- Resolved