This commit is contained in:
hehihoho3@gmail.com 2024-12-26 15:09:19 +09:00
commit 3a31b56048

View File

@ -183,6 +183,20 @@ function XSSCheck(str, level) {
return str; return str;
} }
/**
* XSS 변경하기
*
*
*/
function XSSChange(str) {
str = str.replaceAll(/(<br>|<br\/>|<br \/>)/g, '\r\n');
str = str.replaceAll("&lt;", '<');
str = str.replaceAll("&gt;", '>');
str = str.replaceAll("&amp;", '&');
return str;
}
//숫자 천단위 콤마 찍어주기 //숫자 천단위 콤마 찍어주기
function numberWithCommas(x) { function numberWithCommas(x) {