19 declare(strict_types=1);
32 protected function getPurifierConfigInstance(): HTMLPurifier_Config
34 return HTMLPurifier_Config::createDefault();
43 $this->assertSame(
'phpunit', $purifier->purify(
'phpunit'));
50 $this->assertSame($toPurify, $purifier->purifyArray($toPurify));
62 'resource' => [fopen(
'php://memory',
'rb')],
71 $this->expectException(InvalidArgumentException::class);
74 $purifier->purifyArray([$element]);
testPurifierIsCalledIfStringsArePurified()
testExceptionIsRaisedIfNonStringElementsArePassedForHtmlBatchProcessing($element)
invalidHtmlDataTypeProvider
Abstract class wrapping the HTMLPurifier instance.
invalidHtmlDataTypeProvider()
Class ilHtmlPurifierLibWrapperTest.