Created
February 6, 2018 23:58
-
-
Save alfredmyers/898c020970bc85503580933876e33a05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private ISpanned FromHtml(string source) | |
{ | |
// app specific code | |
if (Build.VERSION.SdkInt >= BuildVersionCodes.N) | |
{ | |
return Html.FromHtml(source, FromHtmlOptions.ModeLegacy); | |
} | |
#pragma warning disable CS0618 // Type or member is obsolete | |
return Html.FromHtml(source); | |
#pragma warning restore CS0618 // Type or member is obsolete | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private ISpanned FromHtml(string source) | |
{ | |
// app specific code | |
return Html.FromHtml(source); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment