Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stripping HTML tags with Perl



>>>>> "Viktor" == Viktor Pavlenko <vp@example.com> writes:

    SJT> <address default="<phb@example.com>">

    SJT> which may or may not be legal HTML.

    Viktor> So, use s/<\/?[^>]+>//g to get rid of all html tags

In the case above this leaves `">'.

-- 
University of Tsukuba                Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences       Tel/fax: +81 (298) 53-5091
_________________  _________________  _________________  _________________
What are those straight lines for?  "XEmacs rules."


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links