Moodle
  1. Moodle
  2. MDL-30470

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

    Details

    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_25_STABLE
    • Rank:
      33140

      Description

      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
        63 kB
      2. blog_before.png
        59 kB
      3. blog_display.png
        29 kB
      4. HTML in TinyMCE.jpg
        47 kB
      5. Resulting rendered Wiki page.jpg
        21 kB

        Issue Links

          Activity

            People

            • Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: