Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ufo
/
ufo-platform
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
mali
6 years ago
Commit
b03b20cdf5741cf3543f2912fe2c1b3090fd77b6
1 parent
0c9215ba
兼容空值
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
web/src/main/webapp/js/common/common.js
web/src/main/webapp/js/common/common.js
View file @
b03b20c
//通用的LoadFilter
function
replacexss
(
data
)
{
return
data
.
replace
(
/</ig
,
'<'
).
replace
(
/>/ig
,
'>'
).
replace
(
/"/ig
,
'“'
).
replace
(
/'/ig
,
'‘'
);
if
(
data
)
{
return
data
.
replace
(
/</ig
,
'<'
).
replace
(
/>/ig
,
'>'
).
replace
(
/"/ig
,
'“'
).
replace
(
/'/ig
,
'‘'
);
}
//return data.replace(/</ig, '<').replace(/>/ig, '>').replace(/"/ig, '“').replace(/'/ig, '‘');
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment