HTMLFieldExtensions Module The HTMLFldExtensions module contains class extensions you can use for extending the power of this class. You can add to the module with your own class extensions as needed. Functions CleanPlainText: Returns: A string with the PWStyleHTMLField instance's text with all tags removed, and all links converted to the link text by the link's URL in parantheses. LinksAsString: Returns: A string containing a serialized list of all the links in your PWStyleHTMLField instance. Link records are separated by Return characters. Each link record's fields are separated by chr(9) characters in the following order: Link text, text start, text length, URL. MapFontListToFont: Parameters: font As String, list As String. Font is the name of a font that you want to map to a CSS-style list of fonts to ensure correct display on browsers or email clients where your content may be viewed. For example, you might map "Helvetica" to "Helvetica, Arial, Sans-Serif". These mappings are used for fonts not formatted in the document's base font. Set the base font with the PWStyleHTMLField's SetBodyFont method. SetMessageLinks: Parameters: rawLinkStr As String. This method helps you restore links saved from a PWStyleHTMLField instance. It takes in a string of links obtained from the LinksAsString function (see above). |