diff --git a/CHANGELOG.md b/CHANGELOG.md index 4765597..575c6cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +## [2.1.1] - 2021-04-08 + +### Fixed + +- Fixed a bug that would cause links to sanitize their href tags in the HTMLParsedContent component + ## [2.1.0] - 2021-03-24 ### Changes diff --git a/package-lock.json b/package-lock.json index c585e1f..d73b790 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@perimetre/ui", - "version": "2.0.0", + "version": "2.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index ab021f4..a89a131 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@perimetre/ui", "description": "A component library made by @perimetre", - "version": "2.1.0", + "version": "2.1.1", "repository": { "type": "git", "url": "git+https://github.com/perimetre/ui.git" diff --git a/src/utils/wysiwyg.tsx b/src/utils/wysiwyg.tsx index e969cd9..e7521e3 100644 --- a/src/utils/wysiwyg.tsx +++ b/src/utils/wysiwyg.tsx @@ -124,7 +124,7 @@ export const editorSanitizeWhiteList: IWhiteList = { em: [], ins: [], li: [], - a: [], + a: ['style', 'href', 'target'], br: [] };