GitHub - sambowler/entitifier: Convert characters in HTML/text to the correct HTML entities.

This is my first foray in to Ruby and Sinatra development hence the code is probably horrific. I intend to keep updating it as I learn more about both the language and the framework but I hope the actual functionality is useful and am always open to suggestions on how to improve it. Get in touch via Twitter: @sam_bowler.

Upcoming Changes

  • Ability to specify strings that should be ignored (<?php, <%= etc.)
  • Option to choose between named and numeric unicode entity replacement

History

XXX XX, 2012: V2

  • Complete rewrite in JavaScript
  • Now fully compatible with all HTML tags
  • Automatically deals with HTML and text (the user no longer has to specify)
  • Migrated to numerical entities for wider support

Sep 22, 2010: V1

Contributors