-
-
Notifications
You must be signed in to change notification settings - Fork 386
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 between < and > in code blocks disappears when opened for editing #1292
Comments
Couldn't reproduce it on the current version. |
I have just reproduced it on demo site. I entered
and after I clicked "edit" I see
My browser is Firefox 98.0.2 on Linux. I have also reproduced it on Chromium 99.0.4844.84 |
I can reproduce it on https://remark42.com/demo/ and I don't see any requests sent to the backend before the text appears on screen, I assume that might be a frontend bug. @akellbl4 can you please look into it? |
@paskal it's backend related. Probably backend sanitizing HTML tags. |
@paskal okay, I figured out the problem that is described. |
The issue's root cause is the following line: c.Orig = p.Sanitize(c.Orig) We need to figure out if we want to sanitize the "orig" field or if it's okay to leave it as-is as the "text" is already sanitised. |
When creating a comment, I can type code containing
<...>
within a backtick code clock. However, when I open this comment for editing, code between<
and>
disappears.The text was updated successfully, but these errors were encountered: