Debugging class change to use htmlspecialchars not sure if this is the final thing. to change as it may or may not look in correct in getText