3625a4f55d
* 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> |
||
---|---|---|
.. | ||
js | ||
php |