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

Code block: Some special characters are not escaped when converting to HTML #2871

Open
ceyhun opened this issue Dec 7, 2020 · 0 comments
Open
Labels
Blocks [Type] Bug Something isn't working

Comments

@ceyhun
Copy link
Contributor

ceyhun commented Dec 7, 2020

Describe the bug

On web special characters typed inside code block are escaped when converting to HTML. For example:

  • < doesn't get converted to &lt;
  • [ doesn't get converted to &#91;

This doesn't happen on mobile. And if you try to upload a post with a code block that contains these characters it's not uploaded and the block seems empty on web.

To Reproduce
Steps to reproduce the behavior:

  1. Add code block
  2. Type <
  3. Switch to HTML mode

Expected behavior
Should see &lt; instead of <

Smartphone (please complete the following information):
Same both on iOS and Android

Additional context
If you do the same on web and open the post in mobile you see the escaped characters instead of the characters themselves.

@ceyhun ceyhun added [Type] Bug Something isn't working Blocks labels Dec 7, 2020
@ceyhun ceyhun mentioned this issue Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocks [Type] Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant