outerText Property

Microsoft FrontPage Visual Basic

outerText Property

Returns or sets a String that represents the text, without HTML, of the specified object.

expression.outerText

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

See also the innerHTML, innerText, and outerHTML properties.

Example

The following example replaces the active element with a BLOCKQUOTE element and places the existing text for the active element, without any assocatiate HTML, into the new BLOCKQUOTE element.

Note  This example will remove any custom formatting, such as bold and italics, and if the active element is the BODY element, it would also remove paragraph-level formatting, such as tables and paragraphs.

    With ActiveDocument.activeElement
    .outerHTML = "<blockquote>" & _
    .outerText & "</blockquote>"
End With