当前位置: 首页 > 工具软件 > Daisy Diff > 使用案例 >

html diff 测试,HTML差异比较 Daisy Diff

向苗宣
2023-12-01

软件介绍

Daisy Diff 是一个 Java 语言用来比较两个 HTML 文档差异的库。

示例:

org.outerj.daisy.diff.DaisyDiff{

/**

* Diffs two html files, outputting the result to the specified consumer.

*/

public static void diffHTML(InputSource oldSource, InputSource newSource, ContentHandler consumer, String prefix, Locale locale) throws SAXException, IOException;

/**

* Diffs two html files word for word as source, outputting the result to

* the specified consumer.

*/

public static void diffTag(String oldText, String newText, ContentHandler consumer) throws Exception;

}

 类似资料: