pub fn rtf_to_html(rtf_content: &[u8]) -> Result<String, RtfError>Expand description
Convert RTF content to HTML
Takes raw RTF bytes and returns semantic HTML. Preserves basic formatting: bold, italic, underline, and paragraph structure.
§Arguments
rtf_content- RTF document as bytes
§Returns
HTML string with semantic markup
§Example
use rtf_to_html::rtf_to_html;
let rtf = br#"{\rtf1\ansi\deff0 {\b Bold} and {\i italic}}"#;
let html = rtf_to_html(rtf).unwrap();