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

Fix tidy filter behaviour

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.5, 1.7.2, 1.8
    • 1.6.6, 1.7.3, 1.8.1
    • Filters
    • None
    • PHP5, tidy filter running
    • Any
    • MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE
    • MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE

    Description

      After getting crazy last days with one Spanish moodler about how his site was showing accents and other chars (only in some places, apparently in a random fashion) I discovered that it had the tidy filter enabled and running.

      So, one simple string like this:

      'áéíóú'

      after being processed by format_text() is showed in browser like:

      áéíóúñÑ
      (enclosed by html <p> tags in source code)

      It seems that tidy breaks things sometimes...

      To reproduce:

      1) Enable tidy filter (ensure you've installed the PHP5 tidy extension (tidy_repair_string).
      2) Copy the attached test.php to your moodle dirrot.
      3) Invoke it from the browser.

      Attachments

        Activity

          People

            nicolasconnault Nicolas Connault
            stronk7 Eloy Lafuente (stronk7)
            Nobody Nobody
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11/Jun/07