Export rtf to "more simple" HTML format

  • Friends,

    I've a document and need to export it to HTML format. I tried but the HTML generated has some much, I would like to get a more simple HTML. For example, paragraphs enclosed with <p></p> tags, bold words with <b></b>, italics with <i></i>, <sup></sup>. I don't need that "<style..." definitions for text formatting....

    Is there a way to filter/transform the HTML export simpler?

    Thank you

    • Offizieller Beitrag

    WPTools 7 includes the unit WPIOXml1.pas. Please add this to your uses clause.

    Then you can save HTML using the format string 'XML'.

    Example:
    ShowMessage( WPRichText1.AsANSIString('XML') );

    The XML/HTML output can be customized in the unit WPIOXml1.pas.