text


textstring

Sets or gets the plain-text contents of a text element.

Setting the text property sets the plain-text contents of the text element. Any text that the element already contained is replaced. The new text is formatted using the formatting that was used on of the first character of the previous text value.

Getting the text property returns the plain-text content of the element, without any HTML tags.

To set or get the HTML contents of a text element, use the html property instead.

Did this help?