Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-70721

need a Mustache helper method for html entities

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_310_STABLE

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rezaie9 Shamim Rezaie
            Participants:
            Component watchers:
            Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amy Groshek, David Scotson, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 10 minutes
                10m