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

Description and extra fields don't escape HTML code #252

Closed
arielj opened this issue May 6, 2022 · 0 comments · Fixed by #300
Closed

Description and extra fields don't escape HTML code #252

arielj opened this issue May 6, 2022 · 0 comments · Fixed by #300
Labels
Bug Something isn't working

Comments

@arielj
Copy link
Contributor

arielj commented May 6, 2022

Branch/Commit:

Main branch.

Expected behavior:

When writing html code like <h1>Something</h1> I think it's expected for the tags to show as text, not to proces that as a real <h1> tag.

Actual behavior:

HTML is unescaped and can lead to unexpected problems if tags are not properly closed or the code is not contained properly.

In this screenshot, I added some style and that red div is outside the preview area, this shouldn't be possible:
image

We have to figure out if we can allow only markdown syntax to be parsed and any html to be escaped

Steps to reproduce:

  1. Go to add or edit a story
  2. Type some html

I will abide by the code of conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant