本文整理自网络,侵删。
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 idhttp中设置非标准头信息和读写cookie
python4Delphi 示例应用程序在 Delphi 应用程序中运行简单的 python 脚本
Delphi 2009 之 tcategorypanelgroup[4]: height
Delphi datasnap中间件如何控制长连接的客户端连接?
Delphi xe android 调试错误:connection closed gracefully
更多相关阅读请进入《Delphi》频道 >>