Skip to content
Permalink
Browse files

Move pun_htmlspecialchars to function

  • Loading branch information...
Quy committed Feb 20, 2019
1 parent 1608117 commit 12a25955964a2d459879bebbae76d75f1b83bf8b
Showing with 1 addition and 1 deletion.
  1. +1 −1 include/functions.php
@@ -585,7 +585,7 @@ function generate_crumbs($crumbs)
foreach ($crumbs as $idx => $crumb)
{
$crumbs_markup .= '<li>'.($idx ? '<span>»&#160;</span>' : '');
$item = is_array($crumb) ? '<a href="'.$crumb[1].'">'.$crumb[0].'</a>' : $crumb;
$item = is_array($crumb) ? '<a href="'.$crumb[1].'">'.pun_htmlspecialchars($crumb[0]).'</a>' : $crumb;
$crumbs_markup .= $idx == $last_key ? '<strong>'.$item.'</strong>' : $item;
$crumbs_markup .= '</li>';
}

0 comments on commit 12a2595

Please sign in to comment.
You can’t perform that action at this time.