Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-htmlcontent
Advanced tools
Lightweight component which displays HTML string, fixes common typographic issues, adds non-breaking spaces and sanitizes HTML.
Lightweight component which displays HTML string, fixes common typographic issues, adds non-breaking spaces and sanitizes HTML.
import HTMLContent from 'react-htmlcontent'
const myHTMLString = `<p>Hello from HTML containing things that should be sanitized <script>alert('hello')</script> and tweaked 1 000 000 times a day.`
function App() {
return (<HTMLContent>{myHTMLString}</HTMLContent>)
}
HOST
, PORT
).The test setup is based on Jest. Code coverage report is generated to coverage/
. The coverage information is also uploaded to codecov.io after a successful Travis build.
test:watch
too.The boilerplate includes a GitHub Pages specific portion for setting up a documentation site for the component. The main commands handle with the details for you. Sometimes you might want to generate and deploy it by hand, or just investigate the generated bundle.
./gh-pages
directory../gh-pages
to the gh-pages
branch. GitHub will pick this up automatically. Your site will be available through *.github.io/`.react-htmlcontent is available under MIT. See LICENSE for more details.
FAQs
React HTMLContent Component
The npm package react-htmlcontent receives a total of 29 weekly downloads. As such, react-htmlcontent popularity was classified as not popular.
We found that react-htmlcontent demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.