| ... |
... |
@@ -17,13 +17,7 @@ |
| 17 |
17 |
#set($effect = "slideToggle") |
| 18 |
18 |
#end |
| 19 |
19 |
#set($effectduration = $mathtool.mul(1000,$mparams.effectduration)) |
| 20 |
|
-#set($rawTitle = $mparams.title) |
| 21 |
|
-#if($rawTitle && $rawTitle != "") |
| 22 |
|
- #set($wikiSyntaxTitle = "= $rawTitle =") |
| 23 |
|
- #set($titleRendered = $xwiki.renderText($wikiSyntaxTitle, $doc.syntaxId)) |
| 24 |
|
-#else |
| 25 |
|
- #set($titleRendered = "") |
| 26 |
|
-#end |
|
20 |
+#set($title = $escapetool.xml($mparams.title)) |
| 27 |
27 |
|
| 28 |
28 |
{{html clean=false}} |
| 29 |
29 |
<div class="showhide-header" |
| ... |
... |
@@ -31,7 +31,7 @@ |
| 31 |
31 |
data-show-duration="$effectduration" |
| 32 |
32 |
data-show-effect="$effect"> |
| 33 |
33 |
<div class="showhide-header-flex"> |
| 34 |
|
- <div class="showhide-title">$!titleRendered</div> |
|
28 |
+ <div class="showhide-title">$title</div> |
| 35 |
35 |
<div class="showhide-arrow">▶</div> ## Unicode ▶ |
| 36 |
36 |
</div> |
| 37 |
37 |
</div> |
| ... |
... |
@@ -39,9 +39,11 @@ |
| 39 |
39 |
|
| 40 |
40 |
(% class="showhidecontent" #if($id && $id!="")id="showhidecontent${id}" #end#if($xcontext.action != 'edit') style="display: none;"#end %) |
| 41 |
41 |
((( |
| 42 |
|
-((( |
|
36 |
+{{wiki}} |
|
37 |
+{{code language="bash"}} |
| 43 |
43 |
{{wikimacrocontent /}} |
| 44 |
|
-))) |
|
39 |
+{{/code}} |
|
40 |
+{{/wiki}} |
| 45 |
45 |
))) |
| 46 |
46 |
{{/velocity}} |
| 47 |
47 |
|