Export(Text: String; Format: TextFormat);
Text. Text that must be converted.
Format. Format, to which text is converted.
The Export method converts the passed text to the specified format.
The formats, from which text can be converted, are given in the TextFormat enumeration.
The specified function is used to convert the passed text in the HTML format into the text in the RTF format.
Function HtmlToRtf(html: String): String;
Var
Converter: ITextConverter;
Begin
Converter := New TextConverter.Create;
Return Converter.Export(html, TextFormat.Rtf);
End Function HtmlToRtf;
After the function is executed, the text is converted from the HTML format into the RTF format.
See also: