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;
In reply to Re: HTML from single, double and triple encoded entities in RSS documents
by BrowserUk
in thread HTML from single, double and triple encoded entities in RSS documents
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |