summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorroot <root@itinerariummentis.org>2024-06-18 06:57:46 +0000
committerroot <root@itinerariummentis.org>2024-06-18 06:57:46 +0000
commitb13fce93ac14686250db5b38dc5c08432ed849f9 (patch)
tree0f9810f2ed0db1c6fe2a499dbc0c0b032b255f99 /lib
parent7fb8b2adfd840bba7ec2a345c8868508337b2412 (diff)
parent4e039f709571c50895501f1422659d102bef6b16 (diff)
Merge remote-tracking branch 'refs/remotes/origin/master'
fuck
Diffstat (limited to 'lib')
-rw-r--r--lib/fuckhtml.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/fuckhtml.php b/lib/fuckhtml.php
index f3a6efe..8b5eba5 100644
--- a/lib/fuckhtml.php
+++ b/lib/fuckhtml.php
@@ -240,7 +240,17 @@ class fuckhtml{
public function getElementsByFuzzyAttributeValue(string $name, string $value, $collection = null){
$elems = $this->getElementsByAttributeName($name, $collection);
- $value = explode(" ", $value);
+ $value =
+ explode(
+ " ",
+ trim(
+ preg_replace(
+ '/ +/',
+ " ",
+ $value
+ )
+ )
+ );
$return = [];