Results 1 to 2 of 2

Thread: How to mask unwanted words in the site?

  1. #1
    Join Date
    Sep 2012

    How to mask unwanted words in the site?

    I know a little bit of JS Codding but I have no idea how to mask words or numbers for selected site? For ex. www.examplecode.exm
    Containing words: sh*t or pe*. I don't want see those words. How can I make .js file which changes those words into for ex. Flower and water? Or 100 into 50? They won't change sites content but only my clientside browser's perception to those words!

    I just need some ideas and suggestions? :thumbsup:

  2. #2
    Join Date
    Mar 2009
    text="it Works ";

    var emoticons = {
    ':-)' : 'smile1.gif',
    '' : 'smile2.gif',
    '' : 'smile3.gif',
    ':-|' : 'smile4.gif'

    for ( smile in emoticons )
    text = text.replace(smile, '<img src="smilies/' + emoticons[smile] + '" />');

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles