Skip to content

Commit

Permalink
fix: allow data URIs in images, closes #2613
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Aug 29, 2023
1 parent 7c6b1b8 commit 66f1588
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions phpmyfaq/src/phpMyFAQ/Helper/FaqHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ public function cleanUpContent(string $content): string
'tags' => [
'img' => [
'allowed_attributes' => ['alt', 'class', 'height', 'src', 'style', 'title', 'width'],
'allow_data_uri' => true
],
'div' => [
'allowed_attributes' => ['class', 'style'],
Expand Down

0 comments on commit 66f1588

Please sign in to comment.