aboutsummaryrefslogtreecommitdiff
path: root/js/src/util/sanitizer.js
AgeCommit message (Collapse)AuthorFilesLines
2023-11-15Allow `<dl>`, `<dt>` and `<dd>` in JS sanitizer (#39376)Frans de Jonge1-0/+3
Co-authored-by: Julien Déramond <[email protected]>
2023-05-01Update URL sanitizer to allow more protocols (#38531)Kyle Tsang1-42/+36
Co-authored-by: XhmikosR <[email protected]>
2023-03-27Add js-docs shortcode to ensure consistency between doc and js code (#38316)Hannah Issermann1-2/+4
Co-authored-by: XhmikosR <[email protected]>
2023-03-22Remove version comment from JavaScript src files (#38294)GeoSot1-1/+1
2022-12-24Release v5.3.0-alpha1 (#37661)XhmikosR1-1/+1
* Bump version to 5.3.0-alpha1 * Dist * Add docs versions updates * Update note in homepage hero Co-authored-by: Mark Otto <[email protected]>
2022-11-21Bump version to 5.2.3XhmikosR1-1/+1
2022-10-03Release v5.2.2 (#37236)XhmikosR1-1/+1
* Bump version to v5.2.2 * Dist
2022-09-07Release v5.2.1 (#37098)XhmikosR1-1/+1
* Bump version to v5.2.1. * Dist
2022-07-19Release v5.2.0 (#36768)XhmikosR1-1/+1
* Bump version to 5.2.0 * Dist * Update masthead.html
2022-07-18Fix typos in code (#36763)Marc Wrobel1-2/+2
Shoutout is correct but has been replaced by its more common form : Shout-out (https://www.merriam-webster.com/dictionary/shout-out).
2022-05-13Prepare v5.2.0-beta1Mark Otto1-1/+1
2022-01-29Rename variablesXhmikosR1-3/+3
2021-10-09Merge remote-tracking branch 'remotes/origin/v513'XhmikosR1-1/+1
2021-10-09Bump version to 5.1.3.XhmikosR1-1/+1
2021-10-07Sanitizer: fix logic and add a test. (#35133)XhmikosR1-1/+1
This was broken in 2596c97 inadvertently. Added a test so that we don't hit this in the future.
2021-10-06util/sanitizer.js: use `Array.every()` (#35120)XhmikosR1-9/+2
2021-10-05Enable `unicorn/no-array-for-each` ruleXhmikosR1-2/+2
2021-10-05Enable `unicorn/no-for-loop` ruleXhmikosR1-4/+3
2021-10-05Release v5.1.2 (#35114)XhmikosR1-1/+1
2021-09-29sanitizer: add `sms` in the `SAFE_URL_PATTERN` (#35074)XhmikosR1-3/+3
2021-09-15Minor refactoring (#34980)XhmikosR1-18/+17
Rename variables and remove a temporary one
2021-09-07Release v5.1.1 (#34869)v5.1.1XhmikosR1-1/+1
* Prepare v5.1.1. * Dist
2021-08-04Prepare v5.1.0. (#34674)v5.1.0XhmikosR1-1/+1
2021-06-22Release v5.0.2 (#34276)v5.0.2XhmikosR1-1/+1
* Bump version to v5.0.2. * Dist
2021-05-25Change `element.parentNode.removeChild(element)` to `element.remove()` (#34071)GeoSot1-1/+1
2021-05-13Release v5.0.1 (#33972)v5.0.1XhmikosR1-1/+1
* Bump version to 5.0.1. * Dist
2021-05-05Release v5.0.0 (#33647)v5.0.0XhmikosR1-1/+1
* Bump version to 5.0.0 * Fix npm tag * Dist
2021-03-23Release v5.0.0-beta3 (#33439)v5.0.0-beta3XhmikosR1-1/+1
2021-02-19Adjust regex `SAFE_URL_PATTERN` for use with test method of regexes. (#33136)Nikon the Third1-1/+1
The test method on regexes behaves different than the match method on strings in the presence of the global modifier. Add a unit test for sanitizing the same template twice. Co-authored-by: XhmikosR <[email protected]>
2021-02-10Release v5.0.0-beta2 (#32467)v5.0.0-beta2XhmikosR1-1/+1
* Bump version to 5.0.0-beta2 * Dist
2021-01-14Bump eslint-plugin-unicorn from 25.0.1 to 26.0.1 (#32784)dependabot[bot]1-2/+2
* Bump eslint-plugin-unicorn from 25.0.1 to 26.0.1 Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 25.0.1 to 26.0.1. - [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases) - [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v25.0.1...v26.0.1) Signed-off-by: dependabot[bot] <[email protected]> * Updates for `[email protected]` Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: XhmikosR <[email protected]>
2020-12-07Prepare v5.0.0-beta1.XhmikosR1-1/+1
2020-11-14Switch to `Set#has()`XhmikosR1-3/+3
2020-11-14Switch to `String.includes()`XhmikosR1-3/+3
2020-11-11Prepare v5.0.0-alpha3 (#32122)v5.0.0-alpha3XhmikosR1-1/+1
2020-09-29Prepare v5.0.0-alpha2. (#31748)v5.0.0-alpha2XhmikosR1-1/+1
2020-06-19Change whitelist to allowlist (#31066)Patrick H. Lauke1-6/+6
Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2020-06-16Rename "master" to "main". (#31050)XhmikosR1-1/+1
2020-05-13Partially Revert "Use regex.test() when we want to check for a Boolean. ↵XhmikosR1-2/+2
(#29969)" (#30770) This partially reverts commit 9c2b9ac74d4abb5ec8b7864054315de3409d5f3a.
2020-05-13Bump version to 5.0.0-alpha1 (#29925)XhmikosR1-1/+1
Also add v4.5.0 in versions and keep README.md pointing to v4.5.0 so that there are no broken stuff.
2020-03-25fix: remove make array util function (#30430)Johann-S1-4/+2
2020-01-07sanitizer.js: Add srcset in the allowed attributes (#29968)XhmikosR1-1/+1
2020-01-07Fix the new lint errors.XhmikosR1-2/+2
2020-01-07Use regex.test() when we want to check for a Boolean. (#29969)XhmikosR1-3/+3
2019-03-13Use one-line imports when possible. (#28467)XhmikosR1-3/+1
2019-03-11Comply to the new rules.XhmikosR1-2/+2
2019-02-26move util in a util folder with the sanitizerJohann-S1-0/+131