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

The mustache helper to shorten text should keep comments intact.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: JavaScript
    • Labels:
    • Affected Branches:
      MOODLE_33_STABLE

      Description

      At the moment if there are html comments in the text they have the potential to be removed. In Moodle sometimes we want to keep the comments to do things such as:

      <div class='frog'><p><blockquote><!--[if !IE]><!-->Long text with tags that will<!--<![endif]--> be chopped off but <b>should be added back again</b></blockquote></p></div>
      

      See MDL-51483 for how these sorts of comments are used.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              abgreeve Adrian Greeve
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated: