mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-29 03:52:20 +02:00
Fix sanitise function
HTML uses `>` to encode `>` characters.
This commit is contained in:
parent
f0ec43fa20
commit
2222f767a9
|
@ -93,7 +93,7 @@ export const sanitise = <T>(value: T | string): T | string => {
|
||||||
|
|
||||||
return value
|
return value
|
||||||
.replace(/&/g, '&')
|
.replace(/&/g, '&')
|
||||||
.replace(/>/g, '&rt;')
|
.replace(/>/g, '>')
|
||||||
.replace(/</g, '<')
|
.replace(/</g, '<')
|
||||||
.replace(/"/g, '"');
|
.replace(/"/g, '"');
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue