eligius
    Preparing search index...

    Variable getTextContentConst

    Extracts text content from element, stripping all HTML markup.

    Uses jQuery's .text() method which is XSS-safe and returns only the text content without any HTML tags. Preserves whitespace and text from nested elements.

    Operation data with textContent containing the extracted plain text

    // Extract text from element with HTML
    const result = getTextContent({selectedElement: $div});
    // Given: <div>Hello <strong>World</strong>!</div>
    // Returns: {textContent: "Hello World!"}