Fix #489 - singlequote character was not escaped when angularjs read the quote, text from the generated pt template