From: Nicolas Boisselier Date: Sat, 19 Mar 2016 20:09:09 +0000 (+0000) Subject: move html_errors, tag href X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=3b5de30377741d9a61f5567c45f576cfbc3b482a;p=nb.git move html_errors, tag href --- diff --git a/lib/php/page.php b/lib/php/page.php index af2d83f3..0c6ab9e4 100644 --- a/lib/php/page.php +++ b/lib/php/page.php @@ -158,7 +158,7 @@ class Page extends nb { foreach ($content as $c) { # Add missing href from content - if ($tag == 'a' and !preg_match('//',$attrs)) $attrs = trim($attrs.' href="'.$c.'"'); + if ($tag == 'a' and !preg_match('/href/',$attrs)) $attrs = trim($attrs.' href="'.$c.'"'); $tags[] = '' . '<' . $tag