-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix issues #2644 and #2662 #2712
Conversation
Can you tell me the reason why you put the escapeHTML function in the attachmentManagement file? |
Because I refer to If the place to define the function is the best in |
@roottool line 397 sounds good, please rewrite your code. |
@ZeroX-DG Thank you for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
Description
Solved #2644 and #2662.
The reason for the bug was that inserting unclosed HTML tags into
innerHTML
was automatically closed.So I modified to use the existing
escapeHtmlCharacters
method only within the ``` range when in "Allow dangerous html tags" mode.I referred to the following pages.
Issue fixed
#2644 and #2662
Type of changes
Checklist:
Note
I couldn't run the tests.
That's because the following error code has occurred when I executed
npm run test
with Powershell included in Windows 10 Pro.The part of ※ was translated by Google translation on what was displayed in Japanese.