remove javascript tag by perl

Discussion in 'Perl' started by jjl, Nov 7, 2003.

  1. jjl

    jjl Guest

    Could someone help me on how to remove javascript tag from HTML file by
    perl, such as

    <script language='javascript'> something </script>

    I want to remove two script tags and something inside. Thanks for your help.
     
    jjl, Nov 7, 2003
    #1
    1. Advertising

  2. jjl wrote:
    > Could someone help me on how to remove javascript tag from HTML file
    > by perl, such as
    >
    > <script language='javascript'> something </script>
    >
    > I want to remove two script tags and something inside. Thanks for
    > your help.


    Use a proper parser that can parse HTML, e.g. HTML::parser.
    For further details please see the FAQ: "How do I remove HTML from a
    string?"

    jue
     
    Jürgen Exner, Nov 8, 2003
    #2
    1. Advertising

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. Mark
    Replies:
    1
    Views:
    709
    Joe Smith
    Aug 12, 2004
  2. Don Wash
    Replies:
    2
    Views:
    4,766
    Don Wash
    Sep 7, 2004
  3. Simon-Pierre  Jarry
    Replies:
    2
    Views:
    2,373
    Henrik
    Aug 10, 2005
  4. shruds
    Replies:
    1
    Views:
    825
    John C. Bollinger
    Jan 27, 2006
  5. tshad
    Replies:
    6
    Views:
    21,467
    tshad
    Aug 8, 2006
Loading...

Share This Page