User
<!DOCTYPE html> <html lang="ru"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="Keywords" content="refining" /><meta name="abstract" content="refining" /><meta name="description" content="refining" /><meta name="viewport" content="width=device-width, initial-scale=1"/> <title>Чистильщик</title> </head> <body style="text-align:center;margin:0;"> <div> <textarea id='trash' type="text" style="width:90%;height:400px; text-align:center;"></textarea> </div> <button style="width:180px;height:60px;font: bold 20px/1.5 cursive; text-align:center;" id="_button">старт</button> <br/><br/> <div id="resultation"></div> <script> function refining(){ rG1=''; trash=String(document.getElementById('trash').value); var sG1=new Array(); for(i=0;i<trash.length;i++){sG1[i]=trash[i].replace(/[^а-яА-яa-zA-Z_0-9-—!"№%?*()\[\]+=@#$%^&*{}:;"'?><.,|\ \\\/\n\ ]/g, '\█');}; for(i=0;i<sG1.length;i++){rG1+=sG1[i];}; document.getElementById('resultation').innerHTML=rG1; }; document.getElementById('_button').onclick=refining; </script> </body> </html>