mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-07 16:16:35 +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
|
||||
.replace(/&/g, '&')
|
||||
.replace(/>/g, '&rt;')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/</g, '<')
|
||||
.replace(/"/g, '"');
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue