Skip to content

Commit 4eb2a01

Browse files
committed
Patch: Ensure that notification is sent even with a loadHtml() exception
1 parent 64948d6 commit 4eb2a01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Views/emails/partial/html_field.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$purifiable = new PanicHD\PanicHD\Helpers\Purifiable();
55
$processed_html = $purifiable->getReplaced($html_field);
66
7-
if ($dom->loadHtml( mb_convert_encoding('<div>' . $processed_html . '</div>', 'HTML-ENTITIES', "UTF-8"), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD)){
7+
if (@$dom->loadHtml( mb_convert_encoding('<div>' . $processed_html . '</div>', 'HTML-ENTITIES', "UTF-8"), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD)){
88
99
$container = $dom->getElementsByTagName('div')->item(0);
1010
$container = $container->parentNode->removeChild($container);

0 commit comments

Comments
 (0)