console.debug($code);
var $codeContent = '';
for (var $i = 0; $i < $code.length; $i++) {
- $codeContent += '<li>' + $code[$i] + '</li>';
+ $codeContent += '<li>' + WCF.String.escapeHTML($code[$i]) + '</li>';
}
$list.append($($codeContent));
+ '<dt><label for="redactorCodeHighlighter">' + WCF.Language.get('wcf.bbcode.code.highlighter') + '</label></dt>'
+ '<dd>'
+ '<select id="redactorCodeHighlighter">'
- + '<option value="">' + WCF.Language.get('wcf.bbcode.code.highlighter.none') + '</option>'
+ + '<option value="plain">' + WCF.Language.get('wcf.bbcode.code.highlighter.none') + '</option>'
+ $highlighters
+ '</select>'
+ '<small>' + WCF.Language.get('wcf.bbcode.code.highlighter.description') + '</small>'