Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML sanitizer strips lang attributes #2954

Open
artemist opened this issue Jan 22, 2025 · 0 comments
Open

HTML sanitizer strips lang attributes #2954

artemist opened this issue Jan 22, 2025 · 0 comments
Labels

Comments

@artemist
Copy link

Steps to reproduce the problem

  1. Switch post to HTML mode
  2. Write post which includes han characters with multiple languages (e.g. <span lang="zh-Hans">北京</span><span lang="zh-Hant">【入】</span>. )
  3. Attempt to view post in any way, e.g. via web interface, 3rd party client, etc.
    ...

Expected behaviour

Text renders using the langauages specified in the span tags: 北京【入】

Actual behaviour

Text renders using the post language: 北京【入】

Detailed description

Failing to pass langauge tags is a common rendering issue due to han unification.

Mastodon instance

social.mildlyfunctional.gay

Mastodon version

v4.4.0-alpha.2+glitch

Technical details

@artemist artemist added the bug label Jan 22, 2025
@artemist artemist changed the title HTML sanitizer strips lang tags HTML sanitizer strips lang attributes Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant