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

safe-html flags <br> and <a>'s target/rel #6976

Closed
TilmanJimenez opened this issue Dec 20, 2021 · 2 comments
Closed

safe-html flags <br> and <a>'s target/rel #6976

TilmanJimenez opened this issue Dec 20, 2021 · 2 comments
Labels
wontfix Nobody will work on this.

Comments

@TilmanJimenez
Copy link

Describe the problem

<br> tags aswell as <a target="_blank" rel="noreferrer"> get marked as unsafe html when using the safe-html flag

Describe the solution you'd like

Add <br/> to the safe list. If possible add target="_blank" to the whitelist if rel="noreferrer" is present

Describe alternatives you've considered

No response

Screenshots

No response

Additional context

No response

@nijel
Copy link
Member

nijel commented Dec 21, 2021

The check should allow whatever is in the source string, there is currently no option to customize that.

@github-actions
Copy link

github-actions bot commented Jan 1, 2022

This issue has been automatically marked as stale because there wasn’t any recent activity.

It will be closed soon if no further action occurs.

Thank you for your contributions!

@github-actions github-actions bot added the wontfix Nobody will work on this. label Jan 1, 2022
@github-actions github-actions bot closed this as completed Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix Nobody will work on this.
Projects
None yet
Development

No branches or pull requests

2 participants