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.
Returns
Operation data with textContent containing the extracted plain text
Example
// Extract text from element with HTML constresult = getTextContent({selectedElement:$div}); // Given: <div>Hello <strong>World</strong>!</div> // Returns: {textContent: "Hello World!"}
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.