ppk 🇪🇺 on Nostr: Given this HTML: <dl> <dt></dt> <dd></dd> <dd></dd> <dt></dt> <dd></dd> </dl> How do ...
Given this HTML:
<dl>
<dt></dt>
<dd></dd>
<dd></dd>
<dt></dt>
<dd></dd>
</dl>
How do I select all <dd>s up to the next <dt>?
dt + dd only selects the first one
dt ~ dd selects all dds in the entire list, including the ones I don't want.
Published at
2024-01-12 10:53:58Event JSON
{
"id": "39adfb93276b990938ef681c62b1423410414ba7f43e6fca3a11f2b2dbcfb18b",
"pubkey": "f9cf69496936f607575b8b34cdda30cc5b7176799e9cfc492c226c815ce7604a",
"created_at": 1705056838,
"kind": 1,
"tags": [
[
"proxy",
"https://front-end.social/users/ppk/statuses/111742604959937189",
"activitypub"
]
],
"content": "Given this HTML:\n\n\u003cdl\u003e\n \u003cdt\u003e\u003c/dt\u003e\n \u003cdd\u003e\u003c/dd\u003e\n \u003cdd\u003e\u003c/dd\u003e\n \u003cdt\u003e\u003c/dt\u003e\n \u003cdd\u003e\u003c/dd\u003e\n\u003c/dl\u003e\n\nHow do I select all \u003cdd\u003es up to the next \u003cdt\u003e?\n\ndt + dd only selects the first one\ndt ~ dd selects all dds in the entire list, including the ones I don't want.",
"sig": "4cc93a3bc1622cc688c5e16fc03e0676fa8367fba274afae11116a20a2ef4e3da4274f857f06f1da4e00e93740fe60d2dc2c0f98220efaaed063b2c04ee79a3b"
}