Activitypub post with an URL in alt image text shows HTML on body
I recently shared a post on Mastodon and I'm following that account on Hubzilla. The post had an image with some text for accessibility. The post appeared on Hubzilla timeline with some weird partial HTML code (screenshot below). Looking at the html (also below) it seems the issue is caused due to the URL I put into the alt text.
Steps to reproduce:
- Activate Activitypub plugin
- Follow a Mastodon account
- Post an image with text caption with an URL in it (upload image, click Edit, enter text, apply) on Mastodon account
- When the Hubzilla timeline is loaded, the Mastodon post should show up
Current behavior:
Shows the post with weird part of HTML tag, such as:
https://adnan360.codeberg.page and the page says "Hello from Drone...!"" title="Browser opened to https://adnan360.codeberg.page and the page says "Hello from Drone...!"" loading="eager" />
Looking at the page source on browser devtool, div
with wall-item-body
class has something like this on html:
<img style="max-width: 100%;" src="https://media.mas.to/masto-public/media_attachments/files/106/011/174/207/546/241/original/f732d34189ed5f31.png" alt="Browser opened to <a href=" https:="" adnan360.codeberg.page"="" target="_blank" rel="nofollow noopener">https://adnan360.codeberg.page and the page says "Hello from Drone...!"" title="Browser opened to <a href="https://adnan360.codeberg.page" target="_blank" rel="nofollow noopener">https://adnan360.codeberg.page</a> and the page says "Hello from Drone...!"" loading="eager" /><br><br>Finally! I got <a href="https://mas.to/tags/Drone" ...
alt
tag was broken on the URL that was in accessibility text: ...alt="Browser opened to <a ...
Expected behavior:
Show the post without these code and show the alt text on the image.
Screenshot: