-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML is not escaped properly #59
Comments
There is a Jenkins configuration setting that controls that. It's under "Manage Jenkins > Configure Global Security". There's a drop down labelled "Markup Formatter". Change the setting from "Escaped HTML" to "Safe HTML". |
I see "Escaped HTML" and "Raw HTML". Is "Raw HTML" the one I'd want? |
There must be another setting or plugin that enables the "Safe HTML" option, but I can't find it right now. But yes, I think that the "Raw HTML" setting will fix this problem for you. |
Is it this plugin https://wiki.jenkins-ci.org/display/JENKINS/OWASP+Markup+Formatter+Plugin? |
Update: I do have the "OWASP Markup Formatter Plugin" installed. However, it was at version 1.1. When I updated it to version 1.3, the second option appears as "Safe HTML" and not "Raw HTML". This seems to fix the issue with the builds list. Once I can confirm that the slack notifications are also formatted correctly, I'll close this issue. |
Just to follow up - the slack notifications are still showing the unescaped HTML. I am not sure if this would be an bug for the Slack plugin repo or for this repo... |
+1 on the slack integrations |
Related jenkinsci/slack-plugin#126 |
Check this later |
Replace <a href...>text</a> with <url|text> before escaping the remaining parts of the message fixes jenkinsci#126 fixes nishio-dens/bitbucket-pullrequest-builder-plugin#59
Replace <a href...>text</a> with <url|text> before escaping the remaining parts of the message fixes jenkinsci#126 fixes nishio-dens/bitbucket-pullrequest-builder-plugin#59
Replace <a href...>text</a> with <url|text> before escaping the remaining parts of the message fixes jenkinsci#126 fixes nishio-dens/bitbucket-pullrequest-builder-plugin#59
Attached are 2 screenshots that describe this problem. The first one is on the builds listing on the left side of the job.
The second one is on Slack when I integrate with the Slack plugin
The text was updated successfully, but these errors were encountered: