before I forget added the html entity encoder, its hacky and simple