kirbysayshi/ghembedder — pull request #1 by alex-seville (2012-08-25 20:12:50+00:00)
Title: For HTML files, encode tag opening and closing characters

When I use HTML files I notice that the code is interpreted as source when embedded so it doesn't get shown (i.e. ).

As a solution, I check the filename to see if it ends with .htm or .html and if so I replace the opening and closing characters (< , >) with their HTML encoded equivalents (< , >) so that the HTML source code will appear correctly.

There may be a better way, or place, to do this, but the code in the pull request is concise and works for me.

Thanks for this script, by the way.