replaced escaping function with htmlspecialchars

The escaping function could theoretically incorrectly escape input
sequences.
fixed $this call in static function
Merge pull request #14 from buggedcom/master

replaced escaping function with htmlspecialchars