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

Add support for stripping all tags #98

Closed
wants to merge 1 commit into from
Closed

Conversation

zcolleyz
Copy link

@zcolleyz zcolleyz commented Jun 20, 2023

This PR adds the ability to render HTML entities without any HTML:

<template>
  <div v-safe-html:strip-tags="'<p><strong>Cats<strong> &amp; <em>&quot;Dogs&quot;</em></p>'" />
</template>

Renders to:

<div>Cats &amp; "Dogs"</div>

This behaviour will ignore any modifiers.

  • Create a strip-tags argument that strips all tags
  • Bump version to 2.3.0
  • Update documentation

Create a `strip-tags` argument
Bump version to 2.3.0
@zcolleyz zcolleyz requested a review from LostCrew June 20, 2023 11:24
@zcolleyz zcolleyz marked this pull request as ready for review June 20, 2023 11:24
@zcolleyz zcolleyz requested a review from sdvig June 20, 2023 11:40
README.md Show resolved Hide resolved
README.md Show resolved Hide resolved
src/directive.js Show resolved Hide resolved
src/index.test.js Show resolved Hide resolved
@zcolleyz zcolleyz closed this Jun 21, 2023
@zcolleyz zcolleyz deleted the strip-tags-argument branch June 21, 2023 10:55
@zcolleyz
Copy link
Author

zcolleyz commented Jun 21, 2023

We have no current need for this feature any more. If someone finds this you can either use the allowedTags option or restart the conversation for this feature and we'll go from there.

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