Cocoanetics on Nostr: I am using a wrapper around libxml2 for parsing HTML. Previously that was part of ...
I am using a wrapper around libxml2 for parsing HTML. Previously that was part of DTFoundation (in Objc), but I think I should recreate it in Swift:
https://github.com/odrobnik/HTMLParserhow would I make it more modern? Ditch the delegate protocol and instead have handler blocks?
Published at
2024-06-01 16:04:28Event JSON
{
"id": "8c8a1503a6076f9538f90d9e024d0a3cbcd3bd89a6c375154eb8d0cd3d3d488f",
"pubkey": "3dd8419269cbbdfdb77dfc32fedc0afd8c13f95eda921fb558b0f506363e6375",
"created_at": 1717257868,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/Cocoanetics/statuses/112542211701350057",
"activitypub"
]
],
"content": "I am using a wrapper around libxml2 for parsing HTML. Previously that was part of DTFoundation (in Objc), but I think I should recreate it in Swift: https://github.com/odrobnik/HTMLParser\n\nhow would I make it more modern? Ditch the delegate protocol and instead have handler blocks?",
"sig": "bdf13674e79c4d30f4680cc40d4d7dbeba72ada5068b8a19b88721a68ec2d64738e66b9a008148cce6861a8de3b965f97a07a0341955c287878cd47ec1ece429"
}