diff --git a/core/05-functions.php b/core/05-functions.php
index f63bf03..e37b3b3 100644
--- a/core/05-functions.php
+++ b/core/05-functions.php
@@ -679,7 +679,7 @@ function render_timestamp($timestamp, $absolute = false, $html = true) {
*/
function render_pagename($rchange) {
global $pageindex;
- $pageDisplayName = $rchange->page;
+ $pageDisplayName = htmlentities($rchange->page);
if(isset($pageindex->$pageDisplayName) and !empty($pageindex->$pageDisplayName->redirect))
$pageDisplayName = "$pageDisplayName";
$pageDisplayLink = "$pageDisplayName";
@@ -692,7 +692,7 @@ function render_pagename($rchange) {
* @return string HTML representing the given editor's name.
*/
function render_editor($editorName) {
- return "✎ $editorName";
+ return "✎ ".htmlentities($editorName)."";
}
/**