Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401]

(no description)

File Size: 509 lines (24 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 classes

htmlpurifier_test:: (16 methods):
  test_allow_blank_target()
  test_nolink()
  test_tex()
  test_algebra()
  test_multilang()
  test_format_text_allowid()
  test_allowobjectembed()
  test_line_breaking()
  test_tidy()
  test_nested_lists()
  test_cleaning_nastiness()
  test_is_purify_html_necessary()
  test_allowed_schemes()
  test_idn()
  test_media_tags()
  media_tags_provider()

but:: (0 methods):

but:: (0 methods):


Class: htmlpurifier_test  - X-Ref

HTMLPurifier test case

test_allow_blank_target()   X-Ref
Verify _blank target is allowed.


test_nolink()   X-Ref
Verify our nolink tag accepted.


test_tex()   X-Ref
Verify our tex tag accepted.


test_algebra()   X-Ref
Verify our algebra tag accepted.


test_multilang()   X-Ref
Verify our hacky multilang works.


test_format_text_allowid()   X-Ref
Tests the 'allowid' option for format_text.


test_allowobjectembed()   X-Ref
No description

test_line_breaking()   X-Ref
Test if linebreaks kept unchanged.


test_tidy()   X-Ref
Test fixing of strict problems.


test_nested_lists()   X-Ref
Test nesting - this used to cause problems in earlier versions.


test_cleaning_nastiness()   X-Ref
Test that XSS protection works, complete smoke tests are in htmlpurifier itself.


test_is_purify_html_necessary()   X-Ref
Test internal function used for clean_text() speedup.


test_allowed_schemes()   X-Ref
No description

test_idn()   X-Ref
Test non-ascii domain names


test_media_tags($mediatag, $expected)   X-Ref
Tests media tags.

param: string $mediatag HTML media tag
param: string $expected expected result

media_tags_provider()   X-Ref
Test cases for the test_media_tags test.


Class: but  - X-Ref

Class: but  - X-Ref