
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
create-html-element
Advanced tools
Create a HTML element string
$ npm install create-html-element
const createHtmlElement = require('create-html-element');
createHtmlElement({
name: 'h1',
attributes: {
class: 'unicorn',
rainbow: true,
horse: false,
number: 1,
multiple: ['a', 'b']
},
html: '🦄'
});
//=> '<h1 class="unicorn" rainbow number="1" multiple="a b">🦄</h1>'
createHtmlElement({text: 'Hello <em>World</em>'});
//=> '<div>Hello <em>World</em></div>'
Type: Object
Type: string
Default: div
HTML tag name.
Type: Object
HTML tag attributes.
HTML tag value in unescaped HTML. This option is mutually exclusive with the text option.
HTML tag value in escaped HTML. This option is mutually exclusive with the html option.
MIT © Sindre Sorhus
FAQs
Create a HTML element string
The npm package create-html-element receives a total of 1,310 weekly downloads. As such, create-html-element popularity was classified as popular.
We found that create-html-element demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.