Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Temporarily strip HTML

by epoptai (Curate)
on Jul 19, 2002 at 00:52 UTC ( [id://183098]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $str = 
     qq~This <b>contains</b> both text and <a href="http://www.w3c.org">ht
    +ml</a>.~;
    
  2. or download this
    $str = qq~This <1>contains<2> both text and <3>html<4>.~;
    
    ...
        3 => 'a href="http://www.w3c.org"',
        4 => '/a'
        }
    
  3. or download this
    $str =~ s|<(\d+)>|<$$html{$1}>|g;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-18 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found