F: How to remove all HTML elements of a HTML element with a regular expression or another way?

xiaoxiao2021-03-06  81

String s = string you have to clean;

S = regex.replace (s, @ "/ <[^ />] * />", ", regexoptions.multiline);

The current string S is cleaned up all <> content, provided that your HTML element is not wrong nested

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

New Post(0)