@mozilla.org/feed-textconstruct;1, but users usually don't need to create instances of this directly. Various other feed-related interfaces, such as
nsIFeedContainer have attributes that return objects implementing
| || ||If the text construct contains HTML or XHTML, relative references in the content should be resolved against this base URI.|
| || ||The language of the text (such as "en-US" for U.S. English).|
| || ||The actual text content. This string may contain markup if the |
| || ||The type of content described; one of "text", "html", or "xhtml".|
Creates a new document fragment on a given DOM element, containing the text and (if the text construct contains HTML or XHTML) its markup.
nsIDOMDocumentFragment createDocumentFragment( in nsIDOMElement element );
- The element in which to create the new document fragment.
nsIDocumentFragment containing the text and markup.
Returns the text as plain text with all markup stripped and all entities decoded.
The plain text version of the text construct's contents. If the
type attribute is "text", this method returns the value of the
text attribute unchanged.
If the document
type is either "html" or "xhtml", a "<" character represents markup. To display that character, an escape such as "
<" must be used. If the type is "text", the "<" character represents itself.