From 0d98d7839d1c3da75b95ef29ce12ef54a2a20094 Mon Sep 17 00:00:00 2001 From: lolcat Date: Thu, 16 May 2024 17:22:49 -0400 Subject: added greppr support also btw im not dead --- lib/fuckhtml.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/fuckhtml.php') diff --git a/lib/fuckhtml.php b/lib/fuckhtml.php index 6895fbf..f3a6efe 100644 --- a/lib/fuckhtml.php +++ b/lib/fuckhtml.php @@ -321,11 +321,11 @@ class fuckhtml{ throw new Exception("(getTextContent) Supplied array doesn't contain an innerHTML index"); } + $html = $html["innerHTML"]; } - $html = - preg_split('/\n|<\/?br>/i', $html); + $html = preg_split('/\n|<\/?br>/i', $html); $out = ""; for($i=0; $i