diff --git a/lib/Conifer/Shortcode/Button.php b/lib/Conifer/Shortcode/Button.php index d41e49c..3da6168 100644 --- a/lib/Conifer/Shortcode/Button.php +++ b/lib/Conifer/Shortcode/Button.php @@ -34,7 +34,7 @@ public function render(array $atts = [], string $html = '') : string { $dom = new DOMDocument(); // prevent doctype, html/body tags from being added - $dom->loadHTML($html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); + $dom->loadHTML($html, LIBXML_NOERROR | LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); // get the first in the markup $link = $dom->getElementsByTagName('a')->item(0);