mirror of
https://git.bakhai.co.in/FbIN/4Get.git
synced 2025-11-05 20:31:30 +05:30
Missed code synced
This commit is contained in:
parent
42639cf7d7
commit
d88080ad17
2 changed files with 16 additions and 3 deletions
|
|
@ -1008,7 +1008,8 @@ class frontend{
|
||||||
"startpage" => "Startpage",
|
"startpage" => "Startpage",
|
||||||
"qwant" => "Qwant",
|
"qwant" => "Qwant",
|
||||||
"yep" => "Yep",
|
"yep" => "Yep",
|
||||||
"mojeek" => "Mojeek"
|
"mojeek" => "Mojeek",
|
||||||
|
"baidu" => "Baidu"
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -240,12 +240,13 @@ class fuckhtml{
|
||||||
public function getElementsByFuzzyAttributeValue(string $name, string $value, $collection = null){
|
public function getElementsByFuzzyAttributeValue(string $name, string $value, $collection = null){
|
||||||
|
|
||||||
$elems = $this->getElementsByAttributeName($name, $collection);
|
$elems = $this->getElementsByAttributeName($name, $collection);
|
||||||
|
|
||||||
$value =
|
$value =
|
||||||
explode(
|
explode(
|
||||||
" ",
|
" ",
|
||||||
trim(
|
trim(
|
||||||
preg_replace(
|
preg_replace(
|
||||||
'/ +/',
|
'/ \s+/',
|
||||||
" ",
|
" ",
|
||||||
$value
|
$value
|
||||||
)
|
)
|
||||||
|
|
@ -258,7 +259,18 @@ class fuckhtml{
|
||||||
|
|
||||||
foreach($elem["attributes"] as $attrib_name => $attrib_value){
|
foreach($elem["attributes"] as $attrib_name => $attrib_value){
|
||||||
|
|
||||||
$attrib_value = explode(" ", $attrib_value);
|
$attrib_value =
|
||||||
|
explode(
|
||||||
|
" ",
|
||||||
|
trim(
|
||||||
|
preg_replace(
|
||||||
|
'/\s+/',
|
||||||
|
" ",
|
||||||
|
$attrib_value
|
||||||
|
)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
$ac = count($attrib_value);
|
$ac = count($attrib_value);
|
||||||
$nc = count($value);
|
$nc = count($value);
|
||||||
$cr = 0;
|
$cr = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue