Re: Removing HTML from text



Bill H <bill@xxxxxxxxx> wrote:
I am looking for a perl routine that will strip HTML from a text file
and allow me to setup exceptions. For example, remove all HTML except

Your Question is Asked Frequently: perldoc -q "remove HTML"

<B> <I> <U> <P> and their close tags, and optionally (preferably)
clean up any <P> tags so that contain just <P ALIGN="LEFT"> (or right
or center).

You can define any custom action (remove or retain or whatever you like)
for any HTML element.

jue
.



Relevant Pages

  • Re: perl curl get data from website
    ... The first GET is to load a minimal html page that has embedded JS ... then loading html code fragment (table data ... the table data to contain the information for a new Air Bill. ... into a new request called XMLHttpRequestobject. ...
    (comp.lang.perl.misc)
  • Re: $_POST case sensitivity
    ... to me if you are iterating over the data received from a HTML ... BILL - please understand that all you need to use is ... However, off topic of course, you can use htmlentities to ... Jerry Stuckle ...
    (comp.lang.php)
  • Re: General questions on working with clients
    ... Actually, there's no bill involved. ... But I'm darned if I know how to produce a newsletter without any information ... Is the newsletter going to be a separate html ... page for online reading? ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: $_POST case sensitivity
    ... to me if you are iterating over the data received from a HTML ... BILL - please understand that all you need to use is ... However, off topic of course, you can use htmlentities to ... could cause your data input routines and ensure that all of those ...
    (comp.lang.php)
  • Re: $_POST case sensitivity
    ... to me if you are iterating over the data received from a HTML ... BILL - please understand that all you need to use is ... However, off topic of course, you can use htmlentities to ... Jerry Stuckle ...
    (comp.lang.php)