Skip to content

Commit

Permalink
Fix #10503 - Item label in dropdown list is not displayed if it conta…
Browse files Browse the repository at this point in the history
…ins '<' character
  • Loading branch information
serhiisamko091184 authored and jack7anderson7 committed Oct 15, 2024
1 parent 2e8daf1 commit 7a72220
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/HtmlSanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ public static function stripTags($dirtyHtml, $isEncoded = true)
if ($isEncoded) {
$dirtyHtml = from_html($dirtyHtml);
}
$dirtyHtml = filter_var($dirtyHtml, FILTER_SANITIZE_STRIPPED, FILTER_FLAG_NO_ENCODE_QUOTES);
$dirtyHtml = strip_tags($dirtyHtml);

return $isEncoded ? to_html($dirtyHtml) : $dirtyHtml;
}

Expand Down

0 comments on commit 7a72220

Please sign in to comment.