Skip to content

Commit 303feb8

Browse files
touhidurabirasmecher
authored andcommitted
pkp/pkp-lib#7916 updated the sanitization config
1 parent 713409a commit 303feb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/ArticleBody.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function create(Submission $submission):\DOMNode
5151
if (in_array($mimeType, ['text/html'])) {
5252
static $sanitizer = null;
5353
if (!$sanitizer) {
54-
$sanitizer = new \PKP\core\PKPHtmlSanitizer('p,a');
54+
$sanitizer = new \PKP\core\PKPHtmlSanitizer('p');
5555
}
5656
// Remove non-paragraph content
5757
$text = $sanitizer->sanitize(file_get_contents(Config::getVar('files', 'files_dir') . '/' . $filepath));

0 commit comments

Comments
 (0)