aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/stdmarkup.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/stdmarkup.php b/scripts/stdmarkup.php
index c368f1ca..4abff4d8 100644
--- a/scripts/stdmarkup.php
+++ b/scripts/stdmarkup.php
@@ -260,8 +260,11 @@ function MarkupSetProperty($m){ # title, description, keywords
switch ($markupid) {
case 'title':
global $EnablePageTitlePriority;
- return PZZ(PCache($pagename, $zz=array('title' =>
- SetProperty($pagename, 'title', $m[1], NULL, $EnablePageTitlePriority))));
+ $etp = IsEnabled($EnablePageTitlePriority, 0);
+ $title = strip_tags(MarkupRestore($m[1]));
+ $title = SetProperty($pagename, 'title', $title, NULL, $etp);
+ PCache($pagename, array('title' => $title));
+ return "";
case 'keywords':
return PZZ(SetProperty($pagename, 'keywords', $m[1], ', '));
case 'description':