{"generator":"GNU social 2.0.2-dev","title":"Conversation","totalItems":1,"items":[{"actor":{"id":"https:\/\/dragonscave.space\/users\/jscholes","displayName":"James Scholes","status_net":{"avatarLinks":[{"url":"https:\/\/gnusocial.jp\/avatar\/146099-original-tmp20230706200916.webp","rel":"avatar","type":"image\/webp","width":400,"height":400},{"url":"https:\/\/gnusocial.jp\/avatar\/146099-96-20230706201449.webp","rel":"avatar","type":"image\/webp","width":96,"height":96},{"url":"https:\/\/gnusocial.jp\/avatar\/146099-48-20230706201449.webp","rel":"avatar","type":"image\/webp","width":48,"height":48},{"url":"https:\/\/gnusocial.jp\/avatar\/146099-24-20230706201449.webp","rel":"avatar","type":"image\/webp","width":24,"height":24}],"profile_info":{"local_id":"146099"}},"image":{"url":"https:\/\/gnusocial.jp\/avatar\/146099-96-20230706201449.webp","rel":"avatar","type":"image\/webp","width":96,"height":96},"objectType":"person","summary":"Digital #Accessibility Engineer\/Analyst, #ScreenReader user, and occasional #software developer. #a11y","url":"https:\/\/dragonscave.space\/@jscholes","portablecontacts_net":{"preferredUsername":"jscholes","displayName":"James Scholes","note":"Digital #Accessibility Engineer\/Analyst, #ScreenReader user, and occasional #software developer. #a11y"}},"content":"<p>I'm looking for tools for cleaning up and reformatting <a href=\"https:\/\/dragonscave.space\/tags\/HTML\" class=\"mention hashtag\" rel=\"tag\">#HTML<\/a>, preferably within or callable from the <a href=\"https:\/\/dragonscave.space\/tags\/Python\" class=\"mention hashtag\" rel=\"tag\">#Python<\/a> ecosystem.<\/p><p>I'm not talking about sanitisation for security purposes; I already use NH3 for that. Rather, I want something that can perform tasks like converting manual line breaks to proper paragraph usage, removing empty nodes and superfluous styling, reliably stripping out certain tags while leaving their text content intact, that sort of thing.<\/p><p>It specifically needs to work on markup fragments without requiring an entire document.<\/p><p>No LLMs but machine learning is fine.<\/p>","generator":{"id":"tag:gnusocial.jp,2026-08-16:notice-source:ActivityPub","objectType":"application","status_net":{"source_code":"ActivityPub"}},"id":"https:\/\/dragonscave.space\/users\/jscholes\/statuses\/117100281242712799","object":{"id":"https:\/\/dragonscave.space\/users\/jscholes\/statuses\/117100281242712799","objectType":"note","content":"<p>I'm looking for tools for cleaning up and reformatting <a href=\"https:\/\/dragonscave.space\/tags\/HTML\" class=\"mention hashtag\" rel=\"tag\">#HTML<\/a>, preferably within or callable from the <a href=\"https:\/\/dragonscave.space\/tags\/Python\" class=\"mention hashtag\" rel=\"tag\">#Python<\/a> ecosystem.<\/p><p>I'm not talking about sanitisation for security purposes; I already use NH3 for that. Rather, I want something that can perform tasks like converting manual line breaks to proper paragraph usage, removing empty nodes and superfluous styling, reliably stripping out certain tags while leaving their text content intact, that sort of thing.<\/p><p>It specifically needs to work on markup fragments without requiring an entire document.<\/p><p>No LLMs but machine learning is fine.<\/p>","url":"https:\/\/dragonscave.space\/@jscholes\/117100281242712799","status_net":{"notice_id":null},"tags":[{"objectType":"http:\/\/activityschema.org\/object\/hashtag","displayName":"html"},{"objectType":"http:\/\/activityschema.org\/object\/hashtag","displayName":"python"}]},"to":[{"objectType":"http:\/\/activitystrea.ms\/schema\/1.0\/collection","id":"http:\/\/activityschema.org\/collection\/public"}],"status_net":{"conversation":"tag:gnusocial.jp,2026-08-15:objectType=thread:nonce=2fc575f983f6f7e3","notice_info":{"local_id":"13039415","source":"ActivityPub"}},"published":"2026-08-15T17:06:42+00:00","provider":{"objectType":"service","displayName":"GNU social JP","url":"https:\/\/gnusocial.jp\/"},"verb":"post","url":"https:\/\/dragonscave.space\/@jscholes\/117100281242712799"}],"links":[{"url":"https:\/\/gnusocial.jp\/conversation\/6623648","rel":"alternate","type":"text\/html"}]}