File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ module WikiExtensionsDivMacro
2222 " !{{div_start_tag(id_name, class_name)}}"
2323 macro :div_start_tag do |obj , args |
2424 o = '<div>' if args . length == 0
25- o = '<div id="' + args [ 0 ] . strip + '">' if args . length == 1
26- o = '<div id="' + args [ 0 ] . strip + '" class="' + args [ 1 ] . strip + '">' if args . length == 2
25+ o = '<div id="' + h ( args [ 0 ] . strip ) + '">' if args . length == 1
26+ o = '<div id="' + h ( args [ 0 ] . strip ) + '" class="' + h ( args [ 1 ] . strip ) + '">' if args . length == 2
2727 o . html_safe
2828 end
2929 end
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ def WikiExtensionsFootnote.preview_page
3939
4040 o = ""
4141 o << word
42- o << '<a href="#wiki_extensins_fn_' +"#{ data [ :footnotes ] . length } " + '" class="wiki_extensions_fn" title="' + description + '" name="wiki_extensins_fn_src_' +"#{ data [ :footnotes ] . length } " + '">'
42+ o << '<a href="#wiki_extensins_fn_' +"#{ data [ :footnotes ] . length } " + '" class="wiki_extensions_fn" title="' + h ( description ) + '" name="wiki_extensins_fn_src_' +"#{ data [ :footnotes ] . length } " + '">'
4343 o << "*#{ data [ :footnotes ] . length } "
4444 o << '</a>'
4545 return o . html_safe
@@ -60,7 +60,7 @@ def WikiExtensionsFootnote.preview_page
6060 cnt = 0
6161 data [ :footnotes ] . each { |fn |
6262 cnt += 1
63- o << '<li><span class="wiki_extensions_fn">' + "*#{ cnt } </span> " +'<a name="wiki_extensins_fn_' + "#{ cnt } " + '" href="#wiki_extensins_fn_src_' + "#{ cnt } " + '"' + ">#{ fn [ 'word' ] } </a>:#{ fn [ 'description' ] } </li>"
63+ o << '<li><span class="wiki_extensions_fn">' + "*#{ cnt } </span> " +'<a name="wiki_extensins_fn_' + "#{ cnt } " + '" href="#wiki_extensins_fn_src_' + "#{ cnt } " + '"' + ">#{ fn [ 'word' ] } </a>:#{ h fn [ 'description' ] } </li>"
6464 }
6565 o << '</ul>'
6666 o << '</div>'
You can’t perform that action at this time.
0 commit comments