Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Temporarily strip HTML

by DamnDirtyApe (Curate)
on Jul 19, 2002 at 03:00 UTC ( [id://183112]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! /usr/bin/perl
    
    ...
    
    # Show the string with the HTML put back in.
    print "-----\n", $str, "\n\n" ;
    
  2. or download this
    This <b>contains</b> both text
    and <a href="http://www.w3c.org">html</a>.
    ...
    -----
    This <b>contains</b> both text
    and <a href="http://www.w3c.org">html</a>.
    
  3. or download this
    # Sub the tags back in.
    $str =~ s|<(\d+)>|<$tags[$1]>|gs ;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://183112]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-24 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found