本文整理自网络,侵删。
var unsubscribeStr : string; ovSelection: OleVariant; innerDom, ovTextRange, nnode: OleVariant;begin ovSelection := Edit.doc.selection; //获得选择对象 ovTextRange := ovSelection.createRange; // create a TextRange from the current selection if SameText(ovTextRange.parentElement.tagName, 'a') then begin //是链接,在这里进行处理 ovTextRange.parentElement.outerHtml; //链接的完整 HTML end;end; 相关阅读 >>
Delphi ini文件操作 tinifile、tmeminifile
Delphi tidhttpserver开发http服务端外网无法访问
Delphi xe5、6、7在android或者ios上使用ansistring和ansichar
更多相关阅读请进入《Delphi》频道 >>