From 4559857380317d768ff8394db711eb5c894aa1f8 Mon Sep 17 00:00:00 2001 From: lolcat Date: Tue, 8 Aug 2023 03:09:47 -0400 Subject: added brave image+video support --- lib/fuckhtml.php | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) (limited to 'lib/fuckhtml.php') diff --git a/lib/fuckhtml.php b/lib/fuckhtml.php index 8802511..5c65417 100644 --- a/lib/fuckhtml.php +++ b/lib/fuckhtml.php @@ -356,6 +356,91 @@ class fuckhtml{ return $out; } + + public function parseJsObject(string $json){ + + $bracket = false; + $is_close_bracket = false; + $escape = false; + $json_out = null; + $last_char = null; + + for($i=0; $i -- cgit v1.2.3