diff --git a/lib/languages.php b/lib/languages.php index 812a03006b0..4fa0f44518e 100644 --- a/lib/languages.php +++ b/lib/languages.php @@ -115,6 +115,7 @@ $LANGUAGES = array ( "pl" => "Polish", "ps" => "Pushto", "pt" => "Portuguese", +"pt_br" => "Portuguese (Brazil)", "qu" => "Quechua", "rm" => "Raeto-Romance", "rn" => "Rundi", diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 95b4c4b7a2c..ccc10feaf27 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -116,7 +116,7 @@ function print_navigation ($navigation) { } function print_heading($text, $align="CENTER", $size=3) { - echo "
$text
"; + echo "".stripslashes($text)."
"; } function print_continue($link) { diff --git a/lib/weblib.php b/lib/weblib.php index 8a32e13d744..2aac5658a1f 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -351,7 +351,7 @@ function clean_text($text, $format) { switch ($format) { case FORMAT_MOODLE: - return strip_tags($text, '