mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 02:14:21 +00:00
fix: for code scanning alert no. 10: Double escaping or unescaping (#3283)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
8b7392b56d
commit
2e6abec624
1 file changed
+2
-2
@@ -14,9 +14,9 @@ export const Icon = ({svg, attributes}) => {
|
||||
.replace(/\\u0026/gi, "&")
|
||||
.replace(/</gi, "<")
|
||||
.replace(/>/gi, ">")
|
||||
.replace(/&/gi, "&")
|
||||
.replace(/"/gi, '"')
|
||||
.replace(/"/gi, '"');
|
||||
.replace(/"/gi, '"')
|
||||
.replace(/&/gi, "&");
|
||||
|
||||
const hasWrapper = /<svg[\s>]/i.test(decoded);
|
||||
|
||||
|
||||
Reference in new issue
Block a user