added a method escapeHTML to Parser service