ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilWebDAVMountInstructionsHtmlDocumentProcessor.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
class
ilWebDAVMountInstructionsHtmlDocumentProcessor
extends
ilWebDAVMountInstructionsDocumentProcessorBase
22
{
23
public
function
__construct
(
protected
ilHtmlPurifierInterface
$document_purifier)
24
{
25
}
26
27
public
function
processMountInstructions
(
string
$a_raw_mount_instructions): array
28
{
29
$purified_html_content = $this->document_purifier->purify($a_raw_mount_instructions);
30
31
$html_validator =
new
ilWebDAVMountInstructionsDocumentsContainsHtmlValidator
($purified_html_content);
32
if
(!$html_validator->isValid()) {
33
$purified_html_content = nl2br($purified_html_content);
34
}
35
36
return
$this->
parseInstructionsToAssocArray
($purified_html_content);
37
}
38
}
ilWebDAVMountInstructionsHtmlDocumentProcessor\__construct
__construct(protected ilHtmlPurifierInterface $document_purifier)
Definition:
class.ilWebDAVMountInstructionsHtmlDocumentProcessor.php:23
ilWebDAVMountInstructionsDocumentProcessorBase
Definition:
class.ilWebDAVMounInstructionsDocumentProcessorBase.php:21
ilWebDAVMountInstructionsDocumentProcessorBase\parseInstructionsToAssocArray
parseInstructionsToAssocArray(string $a_raw_mount_instructions)
Definition:
class.ilWebDAVMounInstructionsDocumentProcessorBase.php:23
ilWebDAVMountInstructionsDocumentsContainsHtmlValidator
Definition:
class.ilWebDAVMountInstructionsDocumentsContainsHtmlValidator.php:21
ilWebDAVMountInstructionsHtmlDocumentProcessor\processMountInstructions
processMountInstructions(string $a_raw_mount_instructions)
Definition:
class.ilWebDAVMountInstructionsHtmlDocumentProcessor.php:27
ilHtmlPurifierInterface
Interface for html sanitizing functionality.
Definition:
interface.ilHtmlPurifierInterface.php:25
ilWebDAVMountInstructionsHtmlDocumentProcessor
Definition:
class.ilWebDAVMountInstructionsHtmlDocumentProcessor.php:21
components
ILIAS
WebDAV
classes
mount_instructions
class.ilWebDAVMountInstructionsHtmlDocumentProcessor.php
Generated on Sun Aug 31 2025 23:04:20 for ILIAS by
1.8.13 (using
Doxyfile
)