html entity parser parser take HTML code input replace entity special character character itselfthe special character entity html arequotation Mark entity quot symbol character Single Quote Mark entity apos symbol character Ampersand entity amp symbol character great than Sign entity gt symbol character Less than Sign entity lt symbol character Slash entity frasl symbol character give input text stre html parser implement entity parserreturn text replace entity special character example 1input text amp html entity ambassador notOutput HTML entity ambassador notexplanation the parser replace amp entity example 2input text I quote quotquotoutput I quote Constraints1 textlength 105the string contain possible character 256 ascii character