private void UpdateText()
        {
            if (Control == null || Element == null)
            {
                return;
            }

            if (string.IsNullOrEmpty(Control.Text))
            {
                return;
            }

            // Gets the complete HTML string
            var helper = new LabelRendererHelper(Element, Control.Text);

            try
            {
                CreateAttributedString(Control, helper.ToString());
                SetNeedsDisplay();
            }
            catch
            {
                // ignored
            }
        }
        private void UpdateText()
        {
            if (Control == null || Element == null)
            {
                return;
            }
            if (string.IsNullOrEmpty(Control.Text))
            {
                return;
            }

            // Gets the complete HTML string
            var customHtml = new LabelRendererHelper(Element, Control.Text).ToString();

            // Android's TextView doesn't handle <ul>s, <ol>s and <li>s
            // so it replaces them with <ulc>, <olc> and <lic> respectively.
            // Those tags will be handles by a custom TagHandler
            customHtml = customHtml.Replace("ul>", "ulc>").Replace("ol>", "olc>").Replace("li>", "lic>");

            Control.SetIncludeFontPadding(false);

            SetTextViewHtml(Control, customHtml);
        }