HTML解析器 go-html-transform

码农软件 · 软件分类 · HTML解析器 · 2019-04-02 23:13:13

软件介绍

go-html-transform是使用Go语言实现的一个HTML解析器,并且有HTML5的支持,使用这个解析器可以让我们使用CSS选择器来操作DOM节点。

示例代码:

doc := NewDoc(str)
t := NewTransform(doc)
t.Apply(CopyAnd(myModifiers...), "li.menuitem")
t.Apply(Replace(Text("my new text"), "a")
newDoc := t.Doc()

本文地址:https://codercto.com/soft/d/2736.html

Refactoring

Refactoring

Martin Fowler、Kent Beck、John Brant、William Opdyke、Don Roberts / Addison-Wesley Professional / 1999-7-8 / USD 64.99

Refactoring is about improving the design of existing code. It is the process of changing a software system in such a way that it does not alter the external behavior of the code, yet improves its int......一起来看看 《Refactoring》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试