if ($usehtmleditor) {
// Show shortcuts button if HTML editor is in use, but only if JavaScript is enabled (MDL-9556)
- $str .= '<script type="text/javascript">document.write(\''.
- str_replace('\'','\\\'',editorshortcutshelpbutton()).'\'); </script>';
+ $str .= '<script type="text/javascript">
+//<![CDATA[
+document.write(\''.addslashes_js(editorshortcutshelpbutton()).'\');
+//]]>
+</script>';
}
if ($return) {