aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/fuckhtml.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/fuckhtml.php b/lib/fuckhtml.php
index 08ca8e3..96241dc 100644
--- a/lib/fuckhtml.php
+++ b/lib/fuckhtml.php
@@ -554,14 +554,12 @@ class fuckhtml{
case "\"":
case "'":
if(
- $i > 2 ||
+ $i > 2 && // only check if a quote could be there
(
- (
- $json[$i - 1] === "\\" &&
- $json[$i - 2] === "\\"
- ) ||
- $json[$i - 1] !== "\\"
- )
+ $json[$i - 1] === "\\" &&
+ $json[$i - 2] === "\\"
+ ) ||
+ $json[$i - 1] !== "\\"
){
// found a non-escaped quote
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage