SuggestController: move escaping to controller
This commit is contained in:
parent
1e43ca5d99
commit
ec23a205c7
|
@ -44,7 +44,7 @@ class SuggestController extends ActionController
|
|||
$matches[] = $this->highlight($str, $search);
|
||||
}
|
||||
} else {
|
||||
$matches[] = $str;
|
||||
$matches[] = Util::escapeForHtml($str);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php foreach ($suggestions as $suggest): ?>
|
||||
<li><?= $this->escape($suggest) ?></li>
|
||||
<li><?= $suggest ?></li>
|
||||
<?php endforeach ?>
|
||||
|
|
Loading…
Reference in New Issue