missing t function
change htmlspecialchars to helper
Merge pull request #1409 from hissy/t-function

Add t() function and little more cleanup