No need to escape since we sanitize
This commit is contained in:
parent
95e861099f
commit
10d4da9fbf
@ -311,16 +311,7 @@ function createI18nTranslationFunctionsFactory<MessageKey_themeDefined extends s
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
messageWithArgsInjected = messageWithArgsInjected.replace(
|
messageWithArgsInjected = messageWithArgsInjected.replace(new RegExp(`\\{${i + startIndex}\\}`, "g"), arg);
|
||||||
new RegExp(`\\{${i + startIndex}\\}`, "g"),
|
|
||||||
(() => {
|
|
||||||
if (key === "loginTitleHtml") {
|
|
||||||
return arg;
|
|
||||||
}
|
|
||||||
|
|
||||||
return arg.replace(/</g, "<").replace(/>/g, ">");
|
|
||||||
})()
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return messageWithArgsInjected;
|
return messageWithArgsInjected;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user