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

@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
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!