diff --git a/ext/tag_list/theme.php b/ext/tag_list/theme.php
index db9bf4af..0e97abb5 100644
--- a/ext/tag_list/theme.php
+++ b/ext/tag_list/theme.php
@@ -216,7 +216,7 @@ class TagListTheme extends Themelet {
$count = $row['calc_count'];
// if($n++) $display_html .= "\n
";
if(!is_null($config->get_string('info_link'))) {
- $link = str_replace('$tag', $tag, $config->get_string('info_link'));
+ $link = html_escape(str_replace('$tag', $tag, $config->get_string('info_link')));
$display_html .= ' ?';
}
$link = $this->tag_link($row['tag']);