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

purify_html strips out multilang tags if there are embedded tags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 2.7.3
    • Filters
    • MOODLE_27_STABLE

      Take this example:
      <span lang="en" class="multilang">
      <div>A test in English</div>
      </span><span lang="fr" class="multilang">
      <div>Un test in Francais</div>
      </span>

      This works in:

      • courses pages;
      • html blocks.

      However it doesn't work (multilanguage spans are removed, hence all content is displayed independently from the current user lang) in:

      • event descriptions;
      • forum posts;
      • footnotes in clean theme;
      • ... (possibly in many other places).

      If the div(s) are not present, the multilang spans are kept and the filter works.
      My filling is that there is a filter function that all the possibly user-generated content pass trough, and this bug refers to such a function.

      I have tested with <div> but there could be other tags that interfere with the language filter.

            Unassigned Unassigned
            sylvaticus Antonello Lobianco
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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