// Convert HTML into text Public String htmltotext (string strcontent) {strcontent = strcontent. replace ("& amp", "&"); strcontent = strcontent. replace ("'' "," '"); strcontent = strcontent. replace ("& lt", "<"); strcontent = strcontent. replace ("& gt", ">"); strcontent = strcontent. replace ("& lt", "CHR (60)"); strcontent = strcontent. replace ("& gt", "CHR (37)"); strcontent = strcontent. replace ("& quot", "\" "); strcontent = strcontent. replace (";", ";"); strcontent = strcontent. replace ("<br/>", "\ n"); strcontent = strcontent. replace ("", ""); Return strcontent;} // convert text to HTML Public String texttohtml (string strcontent) {strcontent = strcontent. replace ("&", "& amp"); strcontent = strcontent. replace ("'", "'' "); strcontent = strcontent. replace ("<", "& lt"); strcontent = strcontent. replace (">", "& gt"); strcontent = strcontent. replace ("CHR (60)", "& lt"); strcontent = strcontent. replace ("CHR (37)", "& gt"); strcontent = strcontent. replace ("\" "," & quot "); strcontent = strcontent. replace (";", ";"); strcontent = strcontent. replace ("\ n", "<br/>"); strcontent = strcontent. replace ("", ""); Return strcontent ;}