Allow paragraph tags in admin notes.
This commit is contained in:
parent
186aa90c90
commit
8fad6e7dd7
|
@ -4,7 +4,7 @@
|
||||||
*/
|
*/
|
||||||
import { sanitize } from 'dompurify';
|
import { sanitize } from 'dompurify';
|
||||||
|
|
||||||
export const ALLOWED_TAGS = [ 'a', 'b', 'em', 'i', 'strong' ];
|
export const ALLOWED_TAGS = [ 'a', 'b', 'em', 'i', 'strong', 'p' ];
|
||||||
export const ALLOWED_ATTR = [ 'target', 'href', 'rel', 'name', 'download' ];
|
export const ALLOWED_ATTR = [ 'target', 'href', 'rel', 'name', 'download' ];
|
||||||
|
|
||||||
export default html => {
|
export default html => {
|
||||||
|
|
|
@ -356,6 +356,7 @@ class WC_Admin_Note extends WC_Data {
|
||||||
'valueless' => 'y',
|
'valueless' => 'y',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
'p' => array(),
|
||||||
);
|
);
|
||||||
|
|
||||||
$content = wp_kses( $content, $allowed_html );
|
$content = wp_kses( $content, $allowed_html );
|
||||||
|
|
Loading…
Reference in New Issue