Skip to content

Instantly share code, notes, and snippets.

Avatar

Matt Freels freels

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am freels on github.
  • I am freels (https://keybase.io/freels) on keybase.
  • I have a public key whose fingerprint is DBEA 8656 AE94 CB1D 9F36 828E 25DB FAD5 8C51 6BC5

To claim this, I am signing this object:

View happy st. patrick's day
i tried to escape html in ruby
a task that has proved quite too easy
so i dusted off perl
and gave it a whirl:
while(<>){s/([<>'"&])/sprintf('&#%d;',ord($1))/eg;print;}