TrixieTang has asked for the wisdom of the Perl Monks concerning the following question:
How would one go about encoding all HTML entities in a string except for < and >? I've tried using HTML::Entities, but it ends up encoding < and > and breaking the HTML. I've also tried tinkering with the unsafe_characters parameter in HTML::Entities but I still can't seem to get it to allow < and >.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Encoding all HTML entities except < and >
by haukex (Archbishop) on Oct 15, 2019 at 19:18 UTC | |
by TrixieTang (Sexton) on Oct 15, 2019 at 20:19 UTC |