diff --git a/htmLawed.php b/htmLawed.php index 7a77ece..171b7a6 100755 --- a/htmLawed.php +++ b/htmLawed.php @@ -519,7 +519,7 @@ function hl_tag($t){ $v = str_replace("­", ' ', (strpos($v, '&') !== false ? str_replace(array('­', '­', '­'), ' ', $v) : $v)); # double-quoted char: soft-hyphen; appears here as "­" or hyphen or something else depending on viewing software if($k == 'srcset'){ $v2 = ''; - $pattern = "/(?:[^\"'\s]+\s*(?:\d+[wx])+)/"; + $pattern = "/(?:[^\"'\s]+\s*(?:\d+w|\d+(?:\.\d+)?x)+)/"; preg_match_all($pattern, $v, $matches); $matches = call_user_func_array('array_merge', $matches); foreach($matches as $k1=>$v1){