Skip to content
Permalink
Browse files Browse the repository at this point in the history
XWIKI-19752: Improved mentions macro escaping
  • Loading branch information
manuelleduc committed May 20, 2022
1 parent 457d337 commit 4f290d8
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -604,7 +604,9 @@ blockquote.mention-quote {
#end
#set ($link = $xwiki.getURL($reference.reference, 'view'))
{{html}}
<a id="$anchor" class="$stringtool.join($cssClasses, ' ')" data-reference="$services.model.serialize($reference.reference, 'default')" href="$link">$content</a>
<a id="$escapetool.xml($anchor)" class="$stringtool.join($cssClasses, ' ')" data-reference="$escapetool.xml($services.model.serialize($reference.reference, 'default'))" href="$escapetool.xml($link)">
$escapetool.xml($content)
</a>
{{/html}}
{{/velocity}}</code>
</property>
Expand Down

0 comments on commit 4f290d8

Please sign in to comment.