ScroogeXHTML is a library which supports a subset of the Rich Text Format (RTF) standard. It converts RTF to HTML5 and XHTML standalone documents, or to fragments which can be embedded in other documents.
supports hyperlinks, bookmarks, multi-language and LTR/RTL text, field results and simple tables
picture data extraction, complimentary code for converting and embedding images as Data URIs
minimizes documents using CSS font definitions and generation of local font styles for text with different attributes
includes an API for post-processing of the intermediate DOM tree for additional fine tuning