Failing to edit a comment renders HTML tags in it
Summary
When the API returns an error the comment gets rendered with HTML tags in it
Steps to reproduce
- Go to a MR
- Click the the edit button to edit a comment
- Edit the comment
- Toggle the offline feature in the inspector pannel
- Click save comment
- See the rendered HTML
- Do it again and HTML will be escaped
What is the expected correct behavior?
Should render the comment text & an error message
Relevant logs and/or screenshots
edit | after error |
---|---|
/cc @fatihacet @psimyn