woocommerce/packages
Jorge A. Torres 3625a4f55d
Cherry pick #371 into release/9.2 (#50802)
* Use inert `template` tag to strip tags w/o executing any JS

Fixes https://github.com/Automattic/woocommerce/issues/370

* Guard against legacy browsers to avoid executing JS there.

* Make sure `stripTags` always return `string` not `null`

* Fix typo in code comment  packages/js/currency/src/utils.tsx

Co-authored-by: Naman Malhotra <naman03malhotra@gmail.com>

* Add tests and tweak stripTags

* Tweak tests

* Update packages/js/currency/src/utils.tsx

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Update packages/js/currency/src/utils.tsx

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Update packages/js/currency/src/utils.tsx

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

* Update packages/js/currency/src/utils.tsx

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>

---------

Co-authored-by: Tomek Wytrębowicz <tomalecpub@gmail.com>
Co-authored-by: Naman Malhotra <naman03malhotra@gmail.com>
Co-authored-by: Miguel Pérez Pellicer <5908855+puntope@users.noreply.github.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2024-08-20 17:33:59 -03:00
..
js Cherry pick #371 into release/9.2 (#50802) 2024-08-20 17:33:59 -03:00
php Rename Google Listings and Ads with Google for WooCommerce (#47614) 2024-07-22 18:59:43 +04:00