本文整理自网络,侵删。
function torehtml(const strHTML: string): string;begin Result :=strHTML; Result := StringReplace(Result, '"', '"', [rfReplaceAll]); Result := StringReplace(Result, '''', ''', [rfReplaceAll]); Result := StringReplace(Result, '>', '>', [rfReplaceAll]); Result := StringReplace(Result, '<', '<', [rfReplaceAll]); Result := StringReplace(Result, '&', '&', [rfReplaceAll]);end;
常用HTML转义对照表字符 十进制 转义字符 " " " & & & < < < > > > 不断开空格(non-breaking space)
相关阅读 >>
Delphi 捕捉异常 try except语句 和 try finally语句用法以及区别
Delphi 打造mygetprocaddress函数(Delphi源码)
Delphi tnethttpclient https忽略证书验证
Delphi 关于 class helper for ... 语法
Delphi unidac 连接mdb access 数据库
更多相关阅读请进入《Delphi》频道 >>