Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > remove javascript tag by perl

Reply
Thread Tools

remove javascript tag by perl

 
 
jjl
Guest
Posts: n/a
 
      11-07-2003
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.


 
Reply With Quote
 
 
 
 
Jürgen Exner
Guest
Posts: n/a
 
      11-08-2003
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:arser.
For further details please see the FAQ: "How do I remove HTML from a
string?"

jue


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
Remove javascript content from HTML page using Perl Mark Perl 1 08-12-2004 06:20 PM
To vlan tag or not to tag? budyerr Cisco 1 07-08-2004 03:45 AM
struts tag inside a tag kishan bisht Java 1 07-08-2003 11:04 PM
How to embed the <jsp:plugin> tag into a tag handler class...HELP !! jstack Java 1 07-04-2003 06:58 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57