DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

HTML Entities - Decoding - Perl One-liner

03.15.2011
| 5403 views |
  • submit to reddit
        // Perl one-liner to expand HTML entities like &

perl -i.bak -pe "BEGIN { use HTML::Entities;} HTML::Entities::decode($_); " filename