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

Incorrect HTML Character Encoding in Source Code Display #2779

Closed
grepsuzette opened this issue Sep 10, 2024 · 1 comment
Closed

Incorrect HTML Character Encoding in Source Code Display #2779

grepsuzette opened this issue Sep 10, 2024 · 1 comment

Comments

@grepsuzette
Copy link
Contributor

Issue Description:

When viewing source code on the website, certain characters such as < and > are being displayed as their HTML entity equivalents (&lt; and &gt;). This can lead to confusion for users who are trying to read or copy the source code, as it does not accurately represent the original code.

Steps to Reproduce:

  1. See for example https://gno.land/r/gnoland/blog/gnoblog_test.gno
  2. Observe the representation of characters like < and > in the displayed code.

ksnip_20240910-191423
Shown by gnoweb

ksnip_20240910-191547
Actual code

Expected Behavior:
The source code should display the actual characters < and > instead of their HTML entity representations.

This is all the more important as we discussing filtering more HTML and it gives an appearance of complexity when there isn't.

@leohhhn
Copy link
Contributor

leohhhn commented Sep 10, 2024

Hey, thanks for this; this issue is documented in #2746 & #2752, making it a duplicate issue. I'll close this one. This will be fixed in the upcoming gnoweb revamp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants