Commit 60b27dd2490 for woocommerce
commit 60b27dd24908613aff2afc7ea6596cd7f8e89175
Author: Henrik Urlund <henrik@urlund.com>
Date: Mon May 4 14:12:22 2026 +0200
Add 'small' to allowed HTML tags in frontend.ts (#64540)
* Add 'small' to allowed HTML tags in frontend.ts
small tag was added to not break the default markup when javascript updates the price on page load when using the woocommerce/product-price block
* Add changefile(s) from automation for the following project(s): woocommerce
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: woocommercebot <woocommercebot@users.noreply.github.com>
diff --git a/plugins/woocommerce/changelog/64540-trunk b/plugins/woocommerce/changelog/64540-trunk
new file mode 100644
index 00000000000..d603b723013
--- /dev/null
+++ b/plugins/woocommerce/changelog/64540-trunk
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Add `small` to ALLOWED_TAGS to fix price suffix stripped on variable products.
\ No newline at end of file
diff --git a/plugins/woocommerce/client/blocks/assets/js/atomic/blocks/product-elements/frontend.ts b/plugins/woocommerce/client/blocks/assets/js/atomic/blocks/product-elements/frontend.ts
index 44c31d5f0fc..0c150b00ae1 100644
--- a/plugins/woocommerce/client/blocks/assets/js/atomic/blocks/product-elements/frontend.ts
+++ b/plugins/woocommerce/client/blocks/assets/js/atomic/blocks/product-elements/frontend.ts
@@ -29,6 +29,7 @@ const ALLOWED_TAGS = [
'bdi',
'del',
'ins',
+ 'small',
];
const ALLOWED_ATTR = [
'class',