HtmlToPlainConvertOptions Enumeration |
Defines the available flags which affect how HTML body of a message is converted into plain text.
Namespace: MailBee.MimeAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax [FlagsAttribute]
public enum HtmlToPlainConvertOptions
<FlagsAttribute>
Public Enumeration HtmlToPlainConvertOptions
Members
| Member name | Value | Description |
---|
| None | 0 |
No extra processing.
|
| AddImgAltText | 1 |
Alternative text contained in the ALT attribute of the <IMG> tag will be put into plain-text.
|
| WriteImageIfNoAlt | 2 |
If alternative text was not set in the <IMG> tag, the image string will be put into
plain text.
|
| AddUriForImg | 4 |
For each image, its URI will be placed into plain text.
|
| AddUriForAHRef | 8 |
The URI contained in the <a href=""> tag will be put into plain-text after the content of this tag.
For instance, if HTML was <a href="https://afterlogic.com">AfterLogic Corporation</a>, the plain-text version
will be AfterLogic Corporation <https://afterlogic.com>.
|
Remarks
You can set any combination of these options via
MailMessage.Parser.HtmlToPlainOptions property.
By default (None value), all HTML tags are removed and line terminators are inserted instead of HTML's line terminators such as <br>, <p>, etc.
Note |
---|
URI is a synonym of an URL. |
See Also