Regular expression to remove javascript from a page

Discussion in 'ASP .Net' started by Martin, May 30, 2005.

  1. Martin

    Martin Guest

    Hi,

    I am working on a function to email my entire web page.

    I have so far achieved this, however I am having problems removing all
    script from the HTML of the page.

    I wish to remove script because mail clients like outlook ect give messages
    about not being able to display it properly.

    so I am guessed so far that i need to use regular expression to remove all
    javascript expression such as <script> blocks and inline code with html
    attributes.

    can anybody point me in the right direction to starting to achieve this, or
    better still point me to any script that achieves this at present.

    thanks in advance.

    martin.
     
    Martin, May 30, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VSK
    Replies:
    2
    Views:
    2,686
  2. Dot net work
    Replies:
    2
    Views:
    7,425
    Peter Blum
    May 10, 2004
  3. =?iso-8859-1?B?bW9vcJk=?=

    Matching abitrary expression in a regular expression

    =?iso-8859-1?B?bW9vcJk=?=, Dec 1, 2005, in forum: Java
    Replies:
    8
    Views:
    1,093
    Alan Moore
    Dec 2, 2005
  4. GIMME
    Replies:
    3
    Views:
    12,519
    vforvikash
    Dec 29, 2008
  5. =?utf-8?B?4LC24LGN4LCw4LGA4LCo4LC/4LC14LC+4LC4?=

    Need a Regular expression to remove a char for Unicode text

    =?utf-8?B?4LC24LGN4LCw4LGA4LCo4LC/4LC14LC+4LC4?=, Oct 13, 2006, in forum: Python
    Replies:
    4
    Views:
    1,715
    Leo Kislov
    Oct 13, 2006
  6. Robert
    Replies:
    10
    Views:
    2,128
    Robin
    Apr 21, 2004
  7. GreggTB
    Replies:
    2
    Views:
    171
    GreggTB
    May 26, 2005
  8. Thomas Ardal

    Regular expression from JavaScript

    Thomas Ardal, Sep 10, 2006, in forum: Javascript
    Replies:
    6
    Views:
    146
    Evertjan.
    Sep 11, 2006
Loading...