Reverse the HTML escaping
- If you put some <> in your bio it gets translated to
<
and>
which is expected. - If there is some & in your bio it gets translated to
&
.
And pleroma-fe doesn’t reverse html-escape when editing the bio. Which is basically leading to <
being a &amp;lt;
after few iterations.
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Haelwenn changed the description
changed the description
- Dave LiPuma mentioned in merge request !522 (merged)
mentioned in merge request !522 (merged)
- Guest
Fixed HTML Entity escaping issue in BIO text. PR: !522 (merged)
Will continue with Emoji.
- Guest
@lanodan Can you please let me know what custom emojis are not working properly? Even without unescape, Emojis are working fine on my end.
:gentoo:
For example.Content of the bio (via ActivityPub):
$ curl -H 'Accept: application/activity+json' https://queer.hacktivis.me/users/lanodan -s | jq -r .summary
---<br />Website: <a href="https://hacktivis.me/">https://hacktivis.me/</a><br />OpenPGP: DDC9 237C 14CF 6F4D D847 F6B3 90D9 3ACC FEFF 61AE<br />Pronouns: she/fae, elle/iel<br />Lang: en, fr, (LSF), ...<br />```<br />🐺🦄⚧🂡ⓥⒶ☭ 👿🐧 <img height="32px" width="32px" alt="gentoo" title="gentoo" src="https://queer.hacktivis.me/emoji/custom/gentoo.png" /><br />Pleroma dev (backend, mastofe)<br /><br />banner from: <a href="https://soc.flyingcube.tech/objects/56f79be2-9013-4559-9826-f7dc392417db">https://soc.flyingcube.tech/objects/56f79be2-9013-4559-9826-f7dc392417db</a><br />Federation-bots: <a class="hashtag" data-tag="nobot" href="https://queer.hacktivis.me/tag/nobot">#nobot</a>
What I get when going to
/user-settings
:---Website: https://hacktivis.me/OpenPGP: DDC9 237C 14CF 6F4D D847 F6B3 90D9 3ACC FEFF 61AEPronouns: she/fae, elle/ielLang: en, fr, (LSF), ...```🐺🦄⚧🂡ⓥⒶ☭👿🐧 Pleroma dev (backend, mastofe)banner from: https://soc.flyingcube.tech/objects/56f79be2-9013-4559-9826-f7dc392417dbFederation-bots: #nobot
- Maintainer
I'm confused about what has been done !522 (merged) and what is actually wanted here. @lanodan is the intended behavior that frontend displays the bio as html without doing any escaping? So remove any escaping at all basically (both in display and edit)?
- Guest
@shpuld before !522 (merged), in the bio, html entities was not unescaped
- Maintainer
ah clear, carry on
- Shpuld Shpludson mentioned in commit 8e51c784
mentioned in commit 8e51c784
- feld mentioned in issue #255 (closed)
mentioned in issue #255 (closed)
- Owner
Tried these out right now, everything works as expected.
- lain closed
closed