mirror of
https://git.lolcat.ca/lolcat/4get.git
synced 2024-11-08 17:43:07 -05:00
brave quote fix
This commit is contained in:
parent
8ffb5a2712
commit
169f17b7b8
1 changed files with 18 additions and 1 deletions
|
@ -367,6 +367,7 @@ class fuckhtml{
|
|||
$bracket = false;
|
||||
$is_close_bracket = false;
|
||||
$escape = false;
|
||||
$lastchar = false;
|
||||
$json_out = null;
|
||||
$last_char = null;
|
||||
|
||||
|
@ -399,7 +400,21 @@ class fuckhtml{
|
|||
break;
|
||||
}
|
||||
|
||||
$escape = $json[$i] == "\\" ? true : false;
|
||||
if(
|
||||
$json[$i] == "\\" &&
|
||||
!(
|
||||
$lastchar !== false &&
|
||||
$lastchar . $json[$i] == "\\\\"
|
||||
)
|
||||
){
|
||||
|
||||
$escape = true;
|
||||
}else{
|
||||
|
||||
$escape = false;
|
||||
}
|
||||
|
||||
$lastchar = $json[$i];
|
||||
|
||||
if(
|
||||
$bracket === false &&
|
||||
|
@ -444,6 +459,8 @@ class fuckhtml{
|
|||
$last_char = $json[$i];
|
||||
}
|
||||
|
||||
echo "\n\n" . $json_out . "\n\n";
|
||||
|
||||
return json_decode($json_out, true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue