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 😔️

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

@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

@bleakgrey @wolf480pl @alex well...pleroma allows HTML posts to be sent, so supporting correct rendering of HTML would be rather good thing to have. Though it is just too much work to do, so I think I'll end up with something I have at the moment :)

Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!