Comments (1)
Thanks @adamdmharvey 👍
I looked at the issues of html-react-parser
and it turns out that one person asked the same question: see here.
As indicated in the reply, I think the simplest method would be to use an HTML sanitization library like sanitize-html
.
This would allow us to sanitize our HTML content by specifying the allowed tags.
It could also save us from having similar problems with other tags in the future.
const clean = sanitizeHtml(dirty, {
allowedTags: [ 'b', 'i', 'em', 'strong', 'a' ],
});
from backstage-plugin-jira.
Related Issues (20)
- Jira plugin send api didn't have an authorization HOT 2
- Include Bearer authentication HOT 2
- Problem setting up plugin HOT 1
- Validate the JIRA_TOKEN HOT 1
- Display component in card if defined HOT 2
- Suggestion: Don't show the empty issue categories HOT 5
- My Stories HOT 3
- User-Agent: "MY-UA-STRING" HOT 1
- Plugin unable to authenticate to Jira Server HOT 4
- Type 'Promise<void>' is not assignable to type 'never'.
- Update README to support new composability setup
- Allow the Card to be configurable with a default filter HOT 2
- Component filter not applying to stream HOT 3
- UI overlapping text issue HOT 1
- Remove Sub-tasks
- EntityJiraOverviewCard consumes entity via props
- Returned statuses should be project specific and not instance wide HOT 3
- Project avatars not reachable to Jira Data Center Instance HOT 3
- Issues when upgrade to Backstage release-2021-05-27 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backstage-plugin-jira.