C++/CLI Code Snippet - Remove HTML Tags
C++/CLI code snippet to remove all HTML TAGS from a string. StripHTML strip all HTML tags from a given string and return plain text.
Bookmark:
C++/CLI Code Snippet - Remove HTML Tags
This .Net C++/CLI code snippet removes all HTML TAGS from a string. HTML stripping done by set of successful matches found by iteratively applying a regular expression pattern to the input string.
System::String ^TrimWhiteSpace(System::String ^str) { return System::Text::RegularExpressions::Regex::Replace(str, "^\\s+", System::String::Empty); }
C++/CLI Keywords Used:
- Regex
- Replace
Code Snippet Information:
- Applies To: .Net, C++, CLI, HTML, Regular Expression
- Programming Language : C++/CLI
External Resources: