diff --git a/lib/weblib.php b/lib/weblib.php
index f2c13452569..245f0030475 100644
--- a/lib/weblib.php
+++ b/lib/weblib.php
@@ -2846,7 +2846,7 @@ function check_theme_arrows() {
* See function above, check_theme_arrows.
* To see examples of this function in use, see function get_separator below (simple),
* and function calendar_get_link_next in calendar/lib.php (more complex).
- * @param string $text Plain text label (set to blank only for breadcrumb separator cases).
+ * @param string $text HTML/plain text label (set to blank only for breadcrumb separator cases).
* @param string $url An optional link to use in a surrounding HTML anchor.
* @param bool $accesshide True if text should be hidden (for screen readers only).
* @param string $addclass Additional class names for the link, or the arrow character.
@@ -2862,7 +2862,7 @@ function link_arrow_right($text, $url='', $accesshide=false, $addclass='') {
$arrow = ''.$THEME->rarrow.'';
$htmltext = '';
if ($text) {
- $htmltext = htmlspecialchars($text).' ';
+ $htmltext = $text.' ';
if ($accesshide) {
$htmltext = ''.$htmltext.'';
}
@@ -2872,7 +2872,7 @@ function link_arrow_right($text, $url='', $accesshide=false, $addclass='') {
if ($addclass) {
$class =" class=\"$addclass\"";
}
- return ''.$htmltext.$arrow.'';
+ return ''.$htmltext.$arrow.'';
}
return $htmltext.$arrow;
}
@@ -2880,7 +2880,7 @@ function link_arrow_right($text, $url='', $accesshide=false, $addclass='') {
/**
* Return the left arrow with text ('previous'), and optionally embedded in a link.
* See function above, check_theme_arrows.
- * @param string $text Plain text label (set to blank only for breadcrumb separator cases).
+ * @param string $text HTML/plain text label (set to blank only for breadcrumb separator cases).
* @param string $url An optional link to use in a surrounding HTML anchor.
* @param bool $accesshide True if text should be hidden (for screen readers only).
* @param string $addclass Additional class names for the link, or the arrow character.
@@ -2896,7 +2896,7 @@ function link_arrow_left($text, $url='', $accesshide=false, $addclass='') {
$arrow = ''.$THEME->larrow.'';
$htmltext = '';
if ($text) {
- $htmltext = ' '.htmlspecialchars($text);
+ $htmltext = ' '.$text;
if ($accesshide) {
$htmltext = ''.$htmltext.'';
}
@@ -2906,7 +2906,7 @@ function link_arrow_left($text, $url='', $accesshide=false, $addclass='') {
if ($addclass) {
$class =" class=\"$addclass\"";
}
- return ''.$arrow.$htmltext.'';
+ return ''.$arrow.$htmltext.'';
}
return $arrow.$htmltext;
}