Skip to content

Commit

Permalink
Prevent tags from showing in play/preview window title (firefox)
Browse files Browse the repository at this point in the history
  • Loading branch information
torinfo committed Jan 30, 2016
1 parent 8e33412 commit 5071986
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion website_code/php/xmlInspector.php
Expand Up @@ -166,7 +166,13 @@ public function loadTemplateXML($name)
$this->language = (string)$this->xml['language'];
if (strlen($this->language) == 0)
$this->language = 'en-GB';
$this->name = (string)$this->xml['name'];
$name = (string)$this->xml['name'];
// This may contain HTML tags, convert to plain text
// Remove the HTML tags
$name = strip_tags($name);
// Convert HTML entities to single characters
$name = html_entity_decode($name, ENT_QUOTES, 'UTF-8');
$this->name = $name;
$this->models = array();
$nodes = $this->xml->xpath('/*/*');
foreach ($nodes as $node) {
Expand Down

0 comments on commit 5071986

Please sign in to comment.