codewars / codewars.com

Issue tracker for Codewars
https://www.codewars.com
BSD 2-Clause "Simplified" License
2.09k stars 219 forks source link

Sample tests editor in translation fork unescapes HTML entities #3168

Open Madjosz opened 7 months ago

Madjosz commented 7 months ago

Describe the bug When forking this PHP kata the sample tests contain some HTML in expected strings which should be sanitized by the user by escaping HTML entities. The sample test editor already opens with HTML entities unescaped leading to compile errors. Even reescaping them and then saving+publishing the fork results in having a diff and the new version having unescaped HTML in the sample tests. Maybe this is just a visual bug and the strings are actually escaped but I didn't want to approve to test this out.

Problem does not occurr in full test editor.

Screenshots image

Browser