-
New Feature
-
Resolution: Fixed
-
Minor
-
3.10.1, 3.10.7
-
MOODLE_310_STABLE
-
MOODLE_311_STABLE
-
MDL-70721-master -
-
0
-
HQ Team International Sprint 6, HQ Team International Sprint 7, HQ Team International Sprint 8, HQ Team International Sprint 9, HQ Team International Sprin 10, HQ Team International CI H2-21
The quote helper method is not always useful in some cases. The #quote helper is used when we want to avoid the situations where double quotes can break the JSON syntax. So in order to escape the double quotes we use the #quote helper. But that's only useful in JSON or Javascript. The reason is that the #quote helper escapes double quotes with a backslash. Whereas in HTML, we don't escape with a backslash. we need to replace double quotes with its HTML entity instead.
Then we can use the new helper when we are working with attributes such as aria-label