diff --git a/plugins/woocommerce-admin/client/lib/sanitize-html/index.js b/plugins/woocommerce-admin/client/lib/sanitize-html/index.js index 5671bbebb28..99a53d14b40 100644 --- a/plugins/woocommerce-admin/client/lib/sanitize-html/index.js +++ b/plugins/woocommerce-admin/client/lib/sanitize-html/index.js @@ -4,7 +4,7 @@ */ 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 default html => { diff --git a/plugins/woocommerce-admin/includes/notes/class-wc-admin-note.php b/plugins/woocommerce-admin/includes/notes/class-wc-admin-note.php index 2deed83e3da..42dca1357c1 100644 --- a/plugins/woocommerce-admin/includes/notes/class-wc-admin-note.php +++ b/plugins/woocommerce-admin/includes/notes/class-wc-admin-note.php @@ -356,6 +356,7 @@ class WC_Admin_Note extends WC_Data { 'valueless' => 'y', ), ), + 'p' => array(), ); $content = wp_kses( $content, $allowed_html );