Parenthesis in URL: "(" is wrong, but "%28" is ok

In the correctly closed Issue “Parenthesis in a link produces a wrong link” I had found a bypassing of another markup error (“No use of parenthesis inside any Kirbytag possible”).

This runs up to Kirby version 2.3.2 with the following HTML-code e.g. in a textarea field, which is rendered by using <?php echo $page->text()->kirbytext() ?>,

<a href="https://de.wikipedia.org/wiki/Angeln_&#x28;Fischfang&#x29;" target="_blank">Angeln_&#x28;Fischfang&#x29;</a>

very well.

Today I have tested it with Kirby 2.4.0 beta 2.
Now it renders

<a href="https://de.wikipedia.org/wiki/Angeln_&amp;#x28;Fischfang&amp;#x29;" rel="noopener noreferrer" target="_blank">Angeln_&#x28;Fischfang&#x29;</a>

Hint:
Look for the different url, where it now shows “&amp;” e.g during the rendering of “&#x28;”.

The link (href) starts a realy old wikipedia page! And there are more pages that use “(” and “)” in the url!

This error arises, if I have set in the config.php:

c::set('markdown.extra', true);

or not!

This post was wrong, I have found that ONLY the URL (href) has to be coded following RFC 3986.

Therefore it should be coded in a textarea field like

(link: https://de.wikipedia.org/wiki/Angeln_%28Fischfang%29 text: Angeln_&#x28;Fischfang&#x29;)

which renders, if we use “<?php echo $page->text()->kirbytext() ?>” for this field, to:

<a href="https://de.wikipedia.org/wiki/Angeln_%28Fischfang%29">Angeln_&#x28;Fischfang&#x29;</a>

Hint:
Look for the different coding in the link and the text field, e.g. “%28” and “&#x28;” for the “(”.