Skip to content

Commit

Permalink
Purify
Browse files Browse the repository at this point in the history
  • Loading branch information
ilestis committed Jan 22, 2025
1 parent d055d17 commit 6cdca39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/Definitions/CustomDefinitions.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ public static function apply(HTMLPurifier_HTMLDefinition $def)

// Mentions
$def->addAttribute('a', 'data-toggle', 'Text');
$def->addAttribute('a', 'data-dropdown', 'Text');
$def->addAttribute('a', 'data-pulse', 'Text');
$def->addAttribute('a', 'data-animate', 'Text');
$def->addAttribute('a', 'data-html', 'Text');
$def->addAttribute('a', 'target', 'Text');

Expand Down
2 changes: 1 addition & 1 deletion config/purify.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
. 'div[class|style|id|align|role|title],'
. 'p[class|style|id|dir|align],'
. 'span[class|style|id|dir],'
. 'a[href|class|style|target|rel|title|data-toggle|data-html|id|role],'
. 'a[href|class|style|target|rel|title|data-toggle|data-html|id|role|data-dropdown|data-pulse|data-animate],'
. 'br[class|style],'
. 'i[class],u[class],'
. 'img[src|style|alt|width|height|class|title|id|data-gallery-id],'
Expand Down

0 comments on commit 6cdca39

Please sign in to comment.