Skip to content

Commit

Permalink
Fixes inherited bug
Browse files Browse the repository at this point in the history
This seems to allow escaped HTML through...
  • Loading branch information
daftspunk committed Nov 21, 2024
1 parent 0b21726 commit 6ab8956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Html/HtmlBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ public function obfuscate($value)
*/
public static function strip($string, $allow = '')
{
return htmlspecialchars_decode(strip_tags($string, $allow));
return strip_tags(htmlspecialchars_decode($string), $allow);
}

/**
Expand Down

0 comments on commit 6ab8956

Please sign in to comment.