summaryrefslogtreecommitdiff
path: root/lib/fuckhtml.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2024-05-16 17:22:49 -0400
committerlolcat <will@lolcat.ca>2024-05-16 17:22:49 -0400
commit0d98d7839d1c3da75b95ef29ce12ef54a2a20094 (patch)
treec51d5a0dcfc99d91211b65ed9692974305a72c90 /lib/fuckhtml.php
parentf8d46df1e858401d93c5fa885777113994a03c86 (diff)
added greppr support also btw im not dead
Diffstat (limited to 'lib/fuckhtml.php')
-rw-r--r--lib/fuckhtml.php4
1 files changed, 2 insertions, 2 deletions
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<count($html); $i++){