Skip to content

HtmlDecode of the HtmlBody #43

@coffeeaddict1978

Description

@coffeeaddict1978

Hello,

Is it possible to make the decoding of HTML in HTMLBody optional?

Body.HtmlBody = HttpUtility.HtmlDecode(HTMLBody);    //decode html in case it was encoded along the way

I am attempting to have text in the html that contains < and >. I have already encoded it with [System.Web.HttpUtility]::HtmlEncode($foo) in PowerShell, which makes it safe to include in the broader properly-formatted HTMLBody message. The issue is the above call to HttpUtility.HtmlDecode(HTMLBody) will undo it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions