aspNetEmail

HtmlRemovalOptions Enumeration

Used for removing Html tags and strings from Html content.

public enum HtmlRemovalOptions

Remarks

These options are used for removing and cleaning Html that can be detrimental to Html formatted emails.

Members

Member NameDescription
NoneThe Html is not altered.
ScriptsRemoves <script> blocks and in-line scripts found in tags.
AppletTagRemoves <applet> tags.
ParamTagRemoves <param> tags
EmbedTagRemoves the <embed> tags.
ObjectTagRemoves <object> tags
IFrameRemoves <iframe> tags along with any inner Iframe content.
FrameSetRemoves the <frameset> tags and inner frameset content.
FrameTagRemoves the <frame> tags and any innter frame content
ViewState Removes the ASP.NET __viewstate hidden <input> text from ASP.NET pages.
EventTarget Removes the ASP.NET __eventtarget hidden <input> text from ASP.NET pages.
EventArgument Removes the ASP.NET __eventargument hidden <input> text from ASP.NET pages.
NoScriptTagRemoves the <noscript> tags.
FormTagRemoves the <form> tags.
NoFramesTagRemoves the <noframes> tags and inner content.
HtmlCommentsRemoves Html comments from the Html.
InputHiddenTag Removes the <Input type=hidden > tags.
InputTag Removes the <Input ...> tags.
ReplaceWithEmptyString Replace any removed Html tags with an empty string.
AnchorTag This only removes the <a....> and </a> tags. It does not remove the content between the tags.
AnchorTagReplaceWithHref Replaces the entire <a....>....</a> tag with the value of the href attribute.
AllRemoves all content of the options.

Requirements

Namespace: aspNetEmail

Assembly: aspNetEmail (in aspNetEmail.dll)

See Also

aspNetEmail Namespace