Replace HTML code

xiaoxiao2021-03-06  112

Replace some HTML

EG: strcontent = strcontent.replace ("&", "& amp"); strcontent = strcontent.replace ("'", "' '); strcontent = strcontent.replace (" <"," & lt "); strcontent = StrContent.replace (">"); strcontent = strcontent.replace ("chr (60)", "& lt"); strcontent = strcontent.replace ("chr (37)", "& gt"); strcontent = strcontent.replace ("/", "& quot"); strcontent = strcontent.replace (";", ";"); strcontent = strcontent.replace ("/ n", "> "); strContent = StrContent.replace ("", "& nbsp"); return strcontent;

转载请注明原文地址:https://www.9cbs.com/read-101332.html

New Post(0)