ced4dad has asked for the wisdom of the Perl Monks concerning the following question:
Gentlemen... I am attempting to read formatted HTML from a .txt file, as an entire file, or as a line by line read. I then wish to display the content as simple text, exactly as it was in the file. In attempting to bring the data in as a string or entire page, PRINTING it to the screen yields the formatted HTML output and NOT only the ASCII content of the file. Is there an alternative to PRINT or PRINTF that would yield only the ASCII text being shown on the screen? The content of the file is less than 2000 characters.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Read text from HTML file and display it
by Kenosis (Priest) on Oct 28, 2012 at 23:21 UTC | |
|
Re: Read text from HTML file and display it
by Khen1950fx (Canon) on Oct 29, 2012 at 02:47 UTC | |
|
Re: Read text from HTML file and display it
by Anonymous Monk on Oct 28, 2012 at 19:45 UTC | |
|
Re: Read text from HTML file and display it
by 2teez (Vicar) on Oct 29, 2012 at 05:51 UTC | |
by Lotus1 (Vicar) on Oct 29, 2012 at 20:35 UTC | |
|
Re: Read text from HTML file and display it
by thomas895 (Deacon) on Oct 29, 2012 at 04:33 UTC |