Which html is supported in Jenkins job description

前端 未结 2 1894
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-15 04:50

In the Job description you can use Html tags. I have something like:

blabla.. on http://vms029/wa_s         


        
2条回答
  •  无人及你
    2020-12-15 05:15

    Because I had the fun of trying to figure out what exactly should work, documentation is light on usable details, and I don't want to have to do this again in a year or two, here goes:

    Any references to RawHtmlMarkupFormatter are obsolete by now. As a comment said, the "safe html" markup is now provided by OWASP Markup Formatter Plugin (antisamy-markup-formatter). The actual tags it permits are visible indirectly in the BasicPolicy which uses org.owasp.html.Sanitizers. These two references together allow figuring out what's really supposed to be ok.

    For example used to work back in the day (see MyspacePolicy in the other answer), but appears to no longer be allowed, but enough simple styles are permitted to get somewhere equivalent. This matches the observed behavior of OWASP Markup Formatter 2.0 on a Jenkins instance.

提交回复
热议问题