XSS 변경관련 기능 추가

This commit is contained in:
wyh 2024-12-26 11:43:43 +09:00
parent 0decb976c5
commit 4478e4880b

View File

@ -183,6 +183,20 @@ function XSSCheck(str, level) {
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) {