Motti
Motti

Reputation: 114695

How do I unescape XML special characters in Perl?

I'm processing some XML files (specifically .vcproj files) in Perl and I want to unescape the special characters. The escaped characters I've encountered so far are:

Obviously I can do this myself but it seems that there should be a standard (or CPAN) module to do this but a naive search brings up nothing relevant.

Any ideas?

Upvotes: 7

Views: 2096

Answers (1)

ysth
ysth

Reputation: 98398

XML::Entities or the older HTML::Entities. I've only used the latter.

Searching probably would have been easier for you if you'd known that these things are called entities; I hate it when I'm in that position of not knowing the key information that would make a search possible.

Upvotes: 8

Related Questions