Skip to content

Commit

Permalink
MDL-29539 HTML Editor: Fixed XHTML formatting for editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajesh Taneja committed Sep 29, 2011
1 parent 3973662 commit 4a31390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/form/editor.php
Expand Up @@ -230,7 +230,7 @@ function toHtml() {
//Apply editor validation if required field
$editorrules = '';
if (!is_null($this->getAttribute('onblur')) && !is_null($this->getAttribute('onchange'))) {
$editorrules = 'onblur="'.htmlspecialchars($this->getAttribute('onblur')).'" onchange="'.htmlspecialchars($this->getAttribute('onchange')).'"';
$editorrules = ' onblur="'.htmlspecialchars($this->getAttribute('onblur')).'" onchange="'.htmlspecialchars($this->getAttribute('onchange')).'"';
}
$str .= '<div><textarea id="'.$id.'" name="'.$elname.'[text]" rows="'.$rows.'" cols="'.$cols.'"'.$editorrules.'>';
$str .= s($text);
Expand Down

0 comments on commit 4a31390

Please sign in to comment.