Mj1234 has asked for the wisdom of the Perl Monks concerning the following question:
I have a string as shown below. I want to extract only the plain text and assign it to a scalar using HTML::Parser. How can this be done?
$string = '<style>table{border-collapse: collapse;margin-left: 1cm;fon +t-Family: courier;width: 60%}.hoverTable tr{background: #D8D8D8;} .ho +verTable tr:hover{background-color: #ffff99; }</style><table border=2 + class="hoverTable">[20160628_151916] <tr><td bgcolor="#366092"><font + color="White"> PLAIN TEXT TO BE EXTRACTED</td>';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Remove html tags to obtain plain text
by hippo (Archbishop) on Jun 29, 2016 at 10:19 UTC | |
|
Re: Remove html tags to obtain plain text
by marto (Cardinal) on Jun 29, 2016 at 10:59 UTC | |
|
Re: Remove html tags to obtain plain text
by davies (Monsignor) on Jun 29, 2016 at 15:25 UTC | |
by Mj1234 (Sexton) on Jun 30, 2016 at 05:19 UTC | |
by Anonymous Monk on Jun 30, 2016 at 06:41 UTC | |
|
Re: Remove html tags to obtain plain text
by Anonymous Monk on Jun 29, 2016 at 10:03 UTC |