Replace htmlspecialchars() with $this->escape() #577
Renamed confusing variable
Added to dos