Skip to content
Snippets Groups Projects
Commit c982edaa authored by Marcin Kolanko's avatar Marcin Kolanko
Browse files

fix: secure string

parent a59123b1
No related branches found
No related tags found
1 merge request!30Bugfix/wordpress review
Pipeline #506181 failed
......@@ -266,7 +266,7 @@ class Notice
if ($this->addParagraphToContent()) {
$noticeFormat = '<div %1$s><p>%2$s</p></div>';
}
echo sprintf($noticeFormat, $this->getAttributesAsString(), $this->noticeContent);
echo \wp_kses_post( sprintf($noticeFormat, $this->getAttributesAsString(), $this->noticeContent) );
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment