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

\( \) and \[ \] delimiters inside <textarea>HTML tag produce unexpected results

XMLWordPrintable

    • MOODLE_401_STABLE, MOODLE_402_STABLE

      If we use the \( \) or \[ \] delimiters inside a <textarea> tag in the HTML code of any text field, Moodle inserts and displays <span class="nolink"></span> in the textarea box.

      This result is unexpected, undocumented and unnecessary. Indeed, a textarea contains only characters. <span class="nolink"></span> inside a textarea isn't even a tag, it's just extraneous characters that cannot be of any use.

      For example, the HTML code <textarea>\[ Hello! \]</textarea> displays <span class="nolink">\[ Hello! \]</span> in a textarea box. This is abnormal behavior. The textarea box should only display \[ Hello! \]. The <span class="nolink"></span> characters have no reason to be displayed in the textarea box.

      Note that this bug occurs whether we use any editor, i.e. TinyMCE, Atto and even Plain text area.

            Unassigned Unassigned
            dbauer-ets Dominique Bauer
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.