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

Allow attributes (class, style, etc) for all tags in one time #25

Open
bastien70 opened this issue Jan 11, 2022 · 1 comment
Open

Allow attributes (class, style, etc) for all tags in one time #25

bastien70 opened this issue Jan 11, 2022 · 1 comment

Comments

@bastien70
Copy link

bastien70 commented Jan 11, 2022

Hello, is it possible to allow the tags attributes (like class, style, etc) for specifics (or all ) tags in one time in yaml ?

Currently, I've to do this in my config file :

html_sanitizer:
    default_sanitizer: 'default'
    sanitizers:
        default:
            extensions:
                - 'basic'
                - 'list'
                - 'table'
                - 'image'
                - 'code'
                
            tags:
                span:
                    allowed_attributes:
                        - style
                        - class

                table:
                    allowed_attributes:
                        - style
                        - class

                thead:
                    allowed_attributes:
                        - style
                        - class
@bastien70 bastien70 changed the title Allow attributes (class, style, etc) Allow attributes (class, style, etc) for all tags in one time Jan 11, 2022
@lukepass
Copy link

Yes, please!

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

No branches or pull requests

2 participants