[译]HTML清洁剂
By robot-v1.0
本文链接 https://www.kyfws.com/applications/html-cleaner-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 2 分钟阅读 - 764 个词 阅读量 0[译]HTML清洁剂
原文地址:https://www.codeproject.com/Articles/8091/Html-Cleaner
原文作者:WittnezZ (Claus Witt)
译文由本站 robot-v1.0 翻译
前言
Not really an article, just a simple tool to clean html
并不是真正的文章,只是清理html的简单工具
介绍(Introduction)
用手清洗html代码是一件很痛苦的事情!但是有时您只需要这样做(无论如何,我还是要这样做).除非您有工具为您做.当找到(Cleaning html code by hand is a pain in the …! But once in a while you just have to do it (well I do anyway). Unless you have a tool to do it for you. When finding the) HTML敏捷包(Html Agility Pack) 我的祈祷得到了回应.我很快找到了使用此库清理html代码的代码(在Google的一点帮助下),(my prayers were answered. I quickly found the code for cleaning html code with this library (with a little help from google) at) 这个地方(this place) .我将其全部放在Windows应用程序中,该应用程序使我可以在需要时快速访问该功能.应用程序中没有什么花哨的东西(它是我链接到的两个源中的大部分,然后是粘贴,然后是简单的界面.)没有错误检查…什么都没有…!(. I put it all in a Windows application which allows me to quickly access the function whenever I need it. Nothing fancy in the application (it was pretty much cut/paste from the two sources I have linked to, and then the simple interface.) No error checking… Nothing…!)
用法(Usage)
插入要清洗的html到上面的框中.修改标签和要删除的属性.按下清洁按钮.复制修改后的html代码(第二个框).就是这样…(Insert to html to be cleaned into the upper box. Modify the tags and the attributes to be deleted. Press the clean button. Copy the modified html code (the second box). That’s about it…)
历史(History)
- 2004年8月24日:初步开发.该项目在30分钟内完成,为我节省了大约一个小时的工作.(24-08-2004: Initial development. The project were made in 30 minutes, and saved me about an hours work.)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
C# C++ .NET1.1 Windows .NET .NET1.0 Visual-Studio VS.NET2003 Dev 新闻 翻译