I think I've figured out, how to escape html tags in a way it does not break in #Olifant, when using #Pleroma. Not a good way IMO, but at least it is more or less easy to predict behavior 😄️

@wolf480pl @alex because GTK markup does know nothing about paragraph HTML element 😔️

@alexcleac
Ok, but if you didn't delete it, your later regex would make it linebreak, no?
@alex

@wolf480pl @alex basically, yes. Here I presumed that <p> tags are followed by other <p> tags, so closing of paragraph creates line break which is needed to display the paragraph...

But I've just figured out that I should remove only leading <p> tag, while replacing every other with line break.

@alexcleac @alex yeah, like, it's legal HTML to make paragraphs like

<p>First paragraph
<p>Second paragraph
<p>Third paragraph

@wolf480pl @alexcleac @alex IMO the code shouldn't rely on what's legal and see what the backend *generates* instead

I haven't seen any peculiar cases like this and accounting for them would would only complicate things

Follow

@bleakgrey @alexcleac @alex yeah, I intended to mention that too but forgot

· · Web · 0 · 0 · 1
Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!