This should be simple, but I can't seem to find it at the moment. What module (preferably core one) can be used to escape (encode) special characters that might be interpreted as markup by a POD parser, so it will be rendered as literal? Basically the equivalent of HTML::Entities's encode_entities, or String::ShellQuote's shell_quote, for POD.
For example, I have a single-line string "Compare using Perl's <=> instead of cmp" which I want to convert to: "Compare using Perl's E<lt>=E<gt> instead of cmp".In reply to Escaping special characters for POD output by perlancar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |