Skip to content

Instantly share code, notes, and snippets.

@brendano
Created August 14, 2008 02:13
Show Gist options
  • Save brendano/5351 to your computer and use it in GitHub Desktop.
Save brendano/5351 to your computer and use it in GitHub Desktop.
htmlunescape
#!/usr/bin/env perl
while(<>) {
s/&lt;/</g;
s/&gt;/>/g;
s/&amp;/&/g;
print $_;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment