Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-62873

Wrongly replaced html entities after upgrade antisamy-markup-formatter-plugin to 2.0

XMLWordPrintable

      After upgrading plugin antisamy-markup-formatter-plugin from version 1.8 to 2.0, html entities are replaced even when they shouldn't. For example on page description following code:

      &BUMP &bump &BUMP; &bump; <a href="/job/some_job/parambuild/?SOME_PARAMETER=1&BUMP_VERSION=1">trigger release</a> 

      produces following:

      ≎ ≎ ≎ ≎ <a href="/job/some_job/parambuild/?SOME_PARAMETER=1≎_VERSION=1" rel="nofollow">trigger release</a> 

      According to html entites reference https://www.w3schools.com/charsets/ref_html_entities_b.asp entity & bump; should be replaced with sign ≎, so only one element should be affected, and generated code should look like this:

      &BUMP &bump &BUMP; ≎ <a href="/job/some_job/parambuild/?SOME_PARAMETER=1&BUMP_VERSION=1">trigger release</a> 
      

       

            Unassigned Unassigned
            mjanczuk Mateusz Janczuk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: