Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement: Updated Sanitizer #1129

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Conversation

Batorian
Copy link
Contributor

@Batorian Batorian commented Jul 7, 2024

  • enable most css styles for chapters

@Batorian Batorian changed the title Improvement: updated sanitizer Improvement: Updated Sanitizer Aug 14, 2024
styledTags.forEach(tag => {
transformTags[tag] = createTransformFunction();
});

let text = sanitizeHtml(html, {
allowedTags: sanitizeHtml.defaults.allowedTags.concat([
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are extending the default tags. Most of the tags are already included (i think everything except img), so they are not neccessary.

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.

2 participants