• Remove HTML-Tags from a string.

    Parameters

    • htmlContent: string

      The string containing HTML tags.

    Returns string

    The string without HTML tags.

    Example

    var stringToClean = "<p>This is a <strong>string</strong> with some <u>HTML</u> in it.</p>";
    ix.api.text.stripHTML(stringToClean); // returns: "This is a string with some HTML in it.""