mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Template/Escaped Strings
* escape creature subnames in DetailPage * escape creature names & subnames in Tooltips * js escape inherited filter froms
This commit is contained in:
@@ -81,10 +81,10 @@ class CreatureList extends BaseType
|
||||
$row3[] = '('.$_.')';
|
||||
|
||||
$x = '<table>';
|
||||
$x .= '<tr><td><b class="q">'.$this->getField('name', true).'</b></td></tr>';
|
||||
$x .= '<tr><td><b class="q">'.Util::htmlEscape($this->getField('name', true)).'</b></td></tr>';
|
||||
|
||||
if ($sn = $this->getField('subname', true))
|
||||
$x .= '<tr><td>'.$sn.'</td></tr>';
|
||||
$x .= '<tr><td>'.Util::htmlEscape($sn).'</td></tr>';
|
||||
|
||||
$x .= '<tr><td>'.implode(' ', $row3).'</td></tr>';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user