Last modified by Frank Fock on 2025/04/04 21:18

From version 1.1
edited by Frank Fock
on 2025/01/26 23:11
Change comment: Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.25.5]
To version 2.1
edited by Frank Fock
on 2025/04/04 21:18
Change comment: Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.26.14]

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -4,9 +4,10 @@
4 4   #set ($style = '')
5 5   #set ($extraCssClass = 'withWidth')
6 6   #if ("$!xcontext.macro.params.width" != '')
7 - #set ($style = "style='width: $xcontext.macro.params.width'")
7 + #set ($escapedWidth = $services.rendering.escape($xcontext.macro.params.width, 'xwiki/2.1'))
8 + #set ($style = "style='width: $escapedWidth'")
8 8   #end
9 - (% class="macro-column" data-width="$xcontext.macro.params.width" $style %)(((
10 + (% class="macro-column" data-width="$escapedWidth" $style %)(((
10 10   {{wikimacrocontent /}}
11 11   )))
12 12  #end