Skip to content

Remove unnecessary call to `_.escape`

kushalpandya requested to merge 34430-fix-double-escape-comment-edit into master

What does this MR do?

Fixes a regression where call to _.escape is made second time in updateComment method of notes.js.

Why was this MR needed?

Call to _.escape is already made in getFormData which is used internally by both postComment and updateComment methods, hence additional escaping is not required.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #34430 (closed)

Edited by kushalpandya

Merge request reports