fix: escape HTML tags in lesson validation messages
Prevent HTML elements like <details>, <option>, <form> from being rendered as actual elements in hint messages by properly escaping them with < > and wrapping in <kbd> tags.
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
{
|
||||
"type": "element_exists",
|
||||
"value": "form[method='dialog']",
|
||||
"message": "Add a <form method=\"dialog\"> for closing"
|
||||
"message": "Add a <kbd><form method=\"dialog\"></kbd> for closing"
|
||||
},
|
||||
{
|
||||
"type": "element_exists",
|
||||
@@ -70,7 +70,7 @@
|
||||
{
|
||||
"type": "element_exists",
|
||||
"value": "form[method='dialog']",
|
||||
"message": "Add a <form method=\"dialog\"> for the buttons"
|
||||
"message": "Add a <kbd><form method=\"dialog\"></kbd> for the buttons"
|
||||
},
|
||||
{
|
||||
"type": "element_count",
|
||||
|
||||
Reference in New Issue
Block a user