Merge branch 'master' of http://hylee@vcs.iten.co.kr:9999/hylee/mjon_git
This commit is contained in:
commit
3a31b56048
@ -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("<", '<');
|
||||||
|
str = str.replaceAll(">", '>');
|
||||||
|
str = str.replaceAll("&", '&');
|
||||||
|
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
|
||||||
//숫자 천단위 콤마 찍어주기
|
//숫자 천단위 콤마 찍어주기
|
||||||
function numberWithCommas(x) {
|
function numberWithCommas(x) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user