Moodle

A new filter to tidy HTML using PHP-tidy extension

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.9.5, 2.0
  • Fix Version/s: DEV backlog
  • Component/s: Filters
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE, MOODLE_20_STABLE

Description

We already use HTML purifier to secure text and remove javascript etc.

How about a new filter that uses HTML purifier to tidy up XHTML and make it strict? The filter should have a lot of settings so that the admin can better decide what they want to keep and what they want to lose ...

Activity

Hide
Petr Škoda (skodak) added a comment -

PHP4 version is not maintained any more, this would have to be 2.0 only

Show
Petr Škoda (skodak) added a comment - PHP4 version is not maintained any more, this would have to be 2.0 only
Hide
Petr Škoda (skodak) added a comment -

HTMLPurifier strips a lot of data, instead we could use the http://php.net/manual/en/book.tidy.php

Show
Petr Škoda (skodak) added a comment - HTMLPurifier strips a lot of data, instead we could use the http://php.net/manual/en/book.tidy.php

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated: