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

HTML purifier modifies HTML of nested lists in Forum, Wiki, Blog, but not in Page

XMLWordPrintable

    • MOODLE_22_STABLE, MOODLE_25_STABLE
    • Hide

      Enter the HTML above in the source of an HTML formatted Wiki page. It should produce nested lists.

      Show
      Enter the HTML above in the source of an HTML formatted Wiki page. It should produce nested lists.

      After entering the following HTML source into a Wiki page (in HTML format) the lists are separated in the recorded HTML. I suspect there must be some filtering going on in the Wiki code itself. I believe that TinyMCE is passing on the correct source.

      <p>Some text</p>
      <ol>
      <li>Bli</li>
      <li>Bla
      <ul>
      <li>Ha</li>
      <li>Ho</li>
      </ul>
      </li>
      <li>Blu</li>
      </ol>
      <p>More text.</p>
      <ul>
      <li>Bli</li>
      <li>Bla
      <ol>
      <li>Ha</li>
      <li>Ho</li>
      </ol>
      </li>
      <li>Blu</li>
      </ul>
      <p>More text.</p>
      

        1. blog_after.png
          blog_after.png
          63 kB
        2. blog_before.png
          blog_before.png
          59 kB
        3. blog_display.png
          blog_display.png
          29 kB
        4. HTML in TinyMCE.jpg
          HTML in TinyMCE.jpg
          47 kB
        5. Resulting rendered Wiki page.jpg
          Resulting rendered Wiki page.jpg
          21 kB

            moodle.com Moodle HQ
            salvetore Michael de Raadt
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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