Escape source code for posting online

Alec Jacobson

November 10, 2009

weblog/

I put up an in browser version of my ruby version of escape-copy. You can copy and paste in your code into the form and my program escapes it for you in two ways. In one of the results boxes I just escape the input for <pre> and <code> tags (escape all of the less than and greater than symbols). In the other I escape everything necessary to paste into a generic (unicode?) HTML tag. Try it out: