HtmlToXamlConverter is a static class that takes an HTML string and converts it into XAML
        public static string ConvertRtfToHtml(string rtfText)
        {
            var xamlText = string.Format(FlowDocumentFormat, ConvertRtfToXaml(rtfText));

            return(HtmlFromXamlConverter.ConvertXamlToHtml(xamlText, false));
        }
 public string ConvertXamlToHtml(string xamlText)
 {
     return(HtmlFromXamlConverter.ConvertXamlToHtml(xamlText, false));
 }