Html.FromHtml

warning CS0618: ‘Html.FromHtml(string)’ is obsolete: ‘deprecated’

Recently, while supporting a team updating their dependencies on Xamarin.Android I found some code similar to the following:

Starting with API level 24, Html.FromHtml(string) is deprecated and Html.FromHtml(string, FromHtmlOptions) should be used instead.

Here’s how the code looks after updated:

Published by

Alfred Myers

I have been interested in computers since I got my hands on a magazine about digital electronics back in 1983 and programming them has been paying the bills since 1991. Having focused on Microsoft-centric technology stacks for the best part of two decades, in recent years I’ve been educating myself on open source technologies such as Linux, networking and the open web platform.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: