StripHTML

This function removes all HTML tags from specified string.

Syntax

StripHTML("stringValue");

Function arguments

  • stringValue – (String) Text from which HTML tags are to be removed.

Return value

This function returns String.
Returns input string in which all HTML tags were replaced with spaces. If there were no HTML tags in input string, same string is returned

Examples

Example 1:
This will return 'Some string with html tags.’

val = "Some <p>string</p> with html tags."
newVal = StripHTML(val);

Example 2:
This will return 'Some string without html tags.’ (nothing will be changed).

val = "Some string without html tags."
newVal = StripHTML(val);
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.