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 target blank in v-cleanhtml #34

Merged
merged 3 commits into from
Dec 16, 2022

Conversation

spiess-demos
Copy link
Contributor

As we allow the target attr, we have to make sure that the link is safe. Chromium seems to add rel="noopener" automatically as of v88, however to also ensure correct behavior for other engines, the rel attr is added whenever a target is set to "_blank".

See

As we allow the target attr, we have to make sure that the link is safe.
Chromium seems to add `rel="noopener"` automatically as of v88, however
to also ensure correct behavior for other engines, the `rel` attr is added
whenever a target is set to "_blank".
Copy link
Contributor

@salisdemos salisdemos left a comment

Choose a reason for hiding this comment

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

looks good. Thank You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants