Writing your own escape html method is a bit dangerous.
André Cruz
1

I’ve addressed that suggestion and added a little addendum to the bottom of the post talking about it. Thanks for the suggestion!