
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
detect-is-it-html-or-xhtml
Advanced tools
Does the string resemble an HTML or XHTML (or neither)?
Does the string resemble an HTML or XHTML (or neither)?
This package is pure ESM. If you're not ready yet, install an older version of this program, 4.1.0 (npm i detect-is-it-html-or-xhtml@4.1.0
).
npm i detect-is-it-html-or-xhtml
import { strict as assert } from "assert";
import { detectIsItHTMLOrXhtml } from "detect-is-it-html-or-xhtml";
assert.equal(
detectIsItHTMLOrXhtml(
'<img src="some.jpg" width="zzz" height="zzz" border="0" style="display:block;" alt="zzz"/>',
),
"xhtml",
);
Please visit codsen.com for a full description of the API.
To report bugs or request features or assistance, raise an issue on GitHub.
MIT License.
Copyright © 2010-2025 Roy Revelt and other contributors.
FAQs
Does the string resemble an HTML or XHTML (or neither)?
The npm package detect-is-it-html-or-xhtml receives a total of 0 weekly downloads. As such, detect-is-it-html-or-xhtml popularity was classified as not popular.
We found that detect-is-it-html-or-xhtml demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.