Categories

jQuery.stripTags()

Categories: Utilities

jQuery.stripTags( text )Returns: String

Plugin: jQuery.string

Description: Remove HTML and XML tags.

  • jQuery.stripTags( text )

    version added: 1.0

    text   A HTML or XML formated string.

The jQuery.stripTags() method remove all HTML and XML tags from the givn String.

  • Strip HTML.

    Code:
    jQuery.stripTags("<div>Header<span class="subheader">My Subtitle.</span>And the end.</div>");
    Results:
    Header My Subtitle. And the end