Load HTML from and to WPRichtext adds  

  • Hello there,

    i use Delphi 10.2 and WPTools 9.1.820.

    I created a Testproject with 2 Buttons and one Memo and one WPRichText.

    The Memo contains this text:

    <div><span style="font-family:'Arial';font-size:11.00pt;">test:</span></div>

    <div><span style="font-family:'Arial';font-size:11.00pt;">demo</span></div>

    Once i load this to the WPRichtext-Component and load the content from the WPRichtext into the Memo again, a &nbsp; is added.

    <div><span style="font-family:'Arial';font-size:11.00pt;">test:</span> &nbsp;</div>

    <div><span style="font-family:'Arial';font-size:11.00pt;">demo</span> &nbsp;</div>

    This happens with each load and read.

    The Code for loading the Content from the Memo to the WPRichtext:

    WPRichText1.AsString:=memo1.lines.Text;

    The Code for loading the Content from the WPRichtext to the Memo:

    memo1.lines.text := WPRichText1.AsANSIString('HTML-onlybody');

    Can anyone tell me what I am doing wrong there?

    Thanks in advance.

    Greetings

    Einmal editiert, zuletzt von _ev_az_ (30. Juni 2021 um 13:30)

  • _ev_az_ 30. Juni 2021 um 13:29

    Hat den Titel des Themas von „Load HTML from and to WPRichtext adds &bnsp;“ zu „Load HTML from and to WPRichtext adds &nbsp;“ geändert.