Skip to content

Add callback function before parsing the attributes of an element#153

Open
onthegit wants to merge 3 commits intomicrocosm-cc:mainfrom
onthegit:main
Open

Add callback function before parsing the attributes of an element#153
onthegit wants to merge 3 commits intomicrocosm-cc:mainfrom
onthegit:main

Conversation

@onthegit
Copy link
Copy Markdown

@onthegit onthegit commented Oct 12, 2022

Add callback function before parsing the attributes of an element.
It can add/modify/remove attributes.

If the callback returns nil or empty array of html attributes then the attributes will not be included in the output.

@onthegit onthegit changed the title Add callback function when parsing the attributes of an element Add callback function before parsing the attributes of an element Oct 12, 2022
dsh2dsh added a commit to dsh2dsh/bluemonday that referenced this pull request Jul 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant