本文整理自网络,侵删。
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 xe android的所有权限按照分类总结说明
Delphi xe8 androdi利用httpclient实现的一个app自动更新组件
Delphi winapi: movewindow - 改变窗口的位置与大小
Delphi winapi: getmodulefilename、getmodulehandle
更多相关阅读请进入《Delphi》频道 >>