in reply to HTML from single, double and triple encoded entities in RSS documents
Why not just iterate until the length doesn't change anymore?
my( $l1, $l2 ) = length( $text ); $l1 = $l2 while ( $l2 = length( $text = HTML::Entities::decode( $text ) ) ) +< $l1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HTML from single, double and triple encoded entities in RSS documents
by Aristotle (Chancellor) on Jan 07, 2006 at 18:54 UTC | |
by BrowserUk (Patriarch) on Jan 07, 2006 at 19:54 UTC | |
by Aristotle (Chancellor) on Jan 07, 2006 at 23:40 UTC | |
by BrowserUk (Patriarch) on Jan 08, 2006 at 00:17 UTC | |
by Aristotle (Chancellor) on Jan 08, 2006 at 01:12 UTC |