
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
validate-html-tags
Advanced tools
Utility functions to escape custom tags in a string or check if string contains valid/custom tags
Utility functions to escape custom tags in a string or check if any string contains valid or custom tags.
$ npm i validate-html-tags
The method will return the changed string in which all the custom HTML tags will be replaced with lt and gt
validateHTMLTags.escapeCustomTags('Send a <custom> and a valid <html> tag here to test!')
This method will return a boolean stating whether the given string contains any valid html tag or not
validateHTMLTags.isValidTag('Send a <custom> and a valid <html> tag here to test!')
This method will return a boolean stating whether the given string contains any custom html tag or not
validateHTMLTags.isCustomTag('Send a <custom> and a valid <html> tag here to test!')
We are considering W3Schools valid HTML elements, ref here.
If you have any suggestions on what more can be added to this library, write to me at - piyush@whisperingbox.com
FAQs
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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.