Zach Leatherman :11ty: on Nostr: Is there a decent-enough way to test if an arbitrary block of content is HTML (and ...
Is there a decent-enough way to test if an arbitrary block of content is HTML (and not text or otherwise XML)?
(I realize the answer might be no)
Published at
2024-11-08 14:37:54Event JSON
{
"id": "c8727fc8d5dcbec89f1cad272bab18d47dc57beb6311e10d46029ed007535a84",
"pubkey": "51b66b5d468ae19d4dee4ffe19ec520a829c415d50ed105666ba730310f6475b",
"created_at": 1731076674,
"kind": 1,
"tags": [
[
"proxy",
"https://fediverse.zachleat.com/users/zachleat/statuses/113447840959947352",
"activitypub"
]
],
"content": "Is there a decent-enough way to test if an arbitrary block of content is HTML (and not text or otherwise XML)?\n\n(I realize the answer might be no)",
"sig": "bdb7192b625e2c3939a5595cf5817e9bf09adcd0c0e848f943f6193c760bbd991634007ae8079fe44aeaeb425d17900556bcc7a21b7c7cc361a0f80dd368cda8"
}