Skip to content

Commit

Permalink
Fix tag <img src="..."> in SanitizeHtml handler
Browse files Browse the repository at this point in the history
  • Loading branch information
sentosango committed Aug 15, 2021
1 parent 5f6c3b5 commit c2d3254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handlers/SanitizeHtml.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function handle(string $text, mixed ...$arguments): string
$config->set('AutoFormat.RemoveEmpty.Predicate', ['iframe' => ['src']]);
$config->set('CSS.AllowedProperties', []);
$config->set('Filter.YouTube', true);
$config->set('HTML.Allowed', 'p,b,a[href],img[src],i');
$config->set('HTML.Allowed', 'p,b,a[href],img[src|alt],i');
$config->set('HTML.SafeIframe', true);
$config->set('HTML.TargetBlank', true);
$config->set(
Expand Down

0 comments on commit c2d3254

Please sign in to comment.