@Component @Named(value="diff.html") @Singleton @Unstable public class DiffHTMLScriptService extends Object implements ScriptService
Constructor and Description |
---|
DiffHTMLScriptService() |
Modifier and Type | Method and Description |
---|---|
XMLDiffConfiguration |
getDefaultConfiguration() |
String |
unified(String previousHTML,
String nextHTML)
Computes the changes between the given HTML fragments using the default configuration, and returns them in the
unified format.
|
String |
unified(String previousHTML,
String nextHTML,
XMLDiffConfiguration config)
Computes the changes between the given HTML fragments using the given configuration and returns them in the
unified format.
|
public String unified(String previousHTML, String nextHTML)
previousHTML
- the previous version of the HTMLnextHTML
- the next version of the HTML@Unstable public String unified(String previousHTML, String nextHTML, XMLDiffConfiguration config)
previousHTML
- the previous version of the HTMLnextHTML
- the next version of the HTMLconfig
- the configuration@Unstable public XMLDiffConfiguration getDefaultConfiguration()
Copyright © 2004–2021 XWiki. All rights reserved.