<!--HTML section--
<!doctype html>
<meta charset= "Utf-8" >
<script type= "Text/javascript" src= "Demo.js" ></script>
<title></title>
<body>
Word limit: <input type= "text" name= "Remainingcharacters" data-length= "5" id= ' remainingcharacters ' data-model= ' Ch ' >
<textarea name= "" id= "keywordsfiltering" cols= "" rows= ">
Keyword filter: Hello here is the Keyword Filtering section, the following is to be filtered text, fool, Beauty, tanse, these words will be "*" to replace, the next text will also be filtered for example, the game plug-in, your password to send over!!
</textarea>
</body>
<!--javascript section--
Window.onload=function () {
var _keywordsfiltering=document.getelementbyid ("keywordsfiltering");
_keywordsfiltering.onclick=function () {
var keywordslibs=[
"Fool",
"Password",
"Beauty",
"Tanse",
/[outside]{1}. {0,3} Hang {1}/
],
Keywordslibslen=keywordslibs.length;
for (var i = 0; i < Keywordslibslen; i++) {
_keywordsfiltering.value=_keywordsfiltering.value.replace (Keywordslibs[i], "* * *")
}
}
};
Keyword filtering of text content (regular filtering)