public static string ConvertRtfToHtml(string rtfText)
        {
            string xamlText = $"<FlowDocument>{ConvertRtfToXaml(rtfText)}</FlowDocument>";

            return(HtmlFromXamlConverter.ConvertXamlToHtml(xamlText, asFullDocument: false));
        }
Exemple #2
0
 public string ConvertXamlToHtml(string xamlText)
 {
     return(HtmlFromXamlConverter.ConvertXamlToHtml(xamlText, asFullDocument: false));
 }
        public static string ConvertRtfToHtmlMS(MemoryStream rtfMs)
        {
            string xamlText = $"<FlowDocument>{ConvertRtfToXamlMemoryStream(rtfMs)}</FlowDocument>";

            return(HtmlFromXamlConverter.ConvertXamlToHtml(xamlText, asFullDocument: false));
        }