We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 713409a commit 303feb8Copy full SHA for 303feb8
classes/ArticleBody.php
@@ -51,7 +51,7 @@ public function create(Submission $submission):\DOMNode
51
if (in_array($mimeType, ['text/html'])) {
52
static $sanitizer = null;
53
if (!$sanitizer) {
54
- $sanitizer = new \PKP\core\PKPHtmlSanitizer('p,a');
+ $sanitizer = new \PKP\core\PKPHtmlSanitizer('p');
55
}
56
// Remove non-paragraph content
57
$text = $sanitizer->sanitize(file_get_contents(Config::getVar('files', 'files_dir') . '/' . $filepath));
0 commit comments