* Escape < >

This commit is contained in:
michael 2019-07-07 18:35:08 +00:00
parent 5db4d0571c
commit cb834b582f

View File

@ -86,10 +86,12 @@ Var
begin
CL:=LastLine.InnerHtml;
CL:=CL+String(S);
cl:=StringReplace(cl,'<','&lt;',[rfReplaceAll]);
cl:=StringReplace(cl,'>','&gt;',[rfReplaceAll]);
cl:=StringReplace(cl,' ','&nbsp;',[rfReplaceAll]);
cl:=StringReplace(cl,#13#10,'<br>',[rfReplaceAll]);
cl:=StringReplace(cl,#10,'<br>',[rfReplaceAll]);
cl:=StringReplace(cl,#10,'<br>',[rfReplaceAll]);
cl:=StringReplace(cl,#13,'<br>',[rfReplaceAll]);
LastLine.InnerHtml:=CL;
if NewLine then
begin