-
Bug
-
Resolution: Unresolved
-
Major
-
None
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; ≎ <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>
[JENKINS-62873] Wrongly replaced html entities after upgrade antisamy-markup-formatter-plugin to 2.0
Description |
Original:
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: {code:java} &BUMP &bump &BUMP; ≎ <a href="/job/some_job/parambuild/?SOME_PARAMETER=1&BUMP_VERSION=1">trigger release</a> {code} produces following: {code:java} ≎ ≎ ≎ ≎ <a href="/job/some_job/parambuild/?SOME_PARAMETER=1≎_VERSION=1" rel="nofollow">trigger release</a> {code} According to html entites reference [https://www.w3schools.com/charsets/ref_html_entities_b.asp] entity ≎ should be replaced with sign ≎, so only one element should be affected, and generated code should look like this: {code:java} &BUMP &bump &BUMP; ≎ <a href="/job/some_job/parambuild/?SOME_PARAMETER=1&BUMP_VERSION=1">trigger release</a> {code} |
New:
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: {code:java} &BUMP &bump &BUMP; ≎ <a href="/job/some_job/parambuild/?SOME_PARAMETER=1&BUMP_VERSION=1">trigger release</a> {code} produces following: {code:java} ≎ ≎ ≎ ≎ <a href="/job/some_job/parambuild/?SOME_PARAMETER=1≎_VERSION=1" rel="nofollow">trigger release</a> {code} According to html entites reference [https://www.w3schools.com/charsets/ref_html_entities_b.asp] entity _≎_ should be replaced with sign ≎, so only one element should be affected, and generated code should look like this: {code:java} &BUMP &bump &BUMP; ≎ <a href="/job/some_job/parambuild/?SOME_PARAMETER=1&BUMP_VERSION=1">trigger release</a> {code} |
Description |
Original:
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: {code:java} &BUMP &bump &BUMP; ≎ <a href="/job/some_job/parambuild/?SOME_PARAMETER=1&BUMP_VERSION=1">trigger release</a> {code} produces following: {code:java} ≎ ≎ ≎ ≎ <a href="/job/some_job/parambuild/?SOME_PARAMETER=1≎_VERSION=1" rel="nofollow">trigger release</a> {code} According to html entites reference [https://www.w3schools.com/charsets/ref_html_entities_b.asp] entity _≎_ should be replaced with sign ≎, so only one element should be affected, and generated code should look like this: {code:java} &BUMP &bump &BUMP; ≎ <a href="/job/some_job/parambuild/?SOME_PARAMETER=1&BUMP_VERSION=1">trigger release</a> {code} |
New:
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: {code:java} &BUMP &bump &BUMP; ≎ <a href="/job/some_job/parambuild/?SOME_PARAMETER=1&BUMP_VERSION=1">trigger release</a> {code} produces following: {code:java} ≎ ≎ ≎ ≎ <a href="/job/some_job/parambuild/?SOME_PARAMETER=1≎_VERSION=1" rel="nofollow">trigger release</a> {code} 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: {code:java} &BUMP &bump &BUMP; ≎ <a href="/job/some_job/parambuild/?SOME_PARAMETER=1&BUMP_VERSION=1">trigger release</a> {code} |