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

fix(stripHTML): add check if there are no surrounding elements #6484

Merged
merged 2 commits into from
Jun 25, 2021

Conversation

jeffchew
Copy link
Member

Related Ticket(s)

No related issue

Description

The stripHTML utility always assumes that there is a wrapping tag. However, in the cases when only a string is passed, it should just pass through without doing anything, rather than throwing an error.

Changelog

Changed

  • Add additional string check in stripHTML

@jeffchew jeffchew added package: utilities Work necessary for the Carbon for IBM.com utilities package dev Needs some dev work labels Jun 25, 2021
@jeffchew jeffchew added this to the Sprint 21-13 milestone Jun 25, 2021
@jeffchew jeffchew self-assigned this Jun 25, 2021
Copy link
Contributor

@NSDrowned NSDrowned left a comment

Choose a reason for hiding this comment

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

LGTM!

@jeffchew jeffchew added the Ready to merge Label for the pull requests that are ready to merge label Jun 25, 2021
@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Jun 25, 2021

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Jun 25, 2021

@ibmdotcom-bot
Copy link
Contributor

@ibmdotcom-bot
Copy link
Contributor

@kodiakhq kodiakhq bot merged commit 66a72e8 into carbon-design-system:master Jun 25, 2021
@jeffchew jeffchew deleted the fix/striphtml-check branch July 19, 2021 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev Needs some dev work package: utilities Work necessary for the Carbon for IBM.com utilities package Ready to merge Label for the pull requests that are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants