@Role
public interface HTMLConverter
Modifier and Type | Method and Description |
---|---|
String |
fromHTML(String html,
String syntaxId)
Cleans and converts the given HTML fragment to the specified syntax.
|
String |
parseAndRender(String html,
String syntax)
Deprecated.
since 11.9RC1, use
parseAndRender(String, Syntax, EntityReference) instead |
default String |
parseAndRender(String html,
org.xwiki.rendering.syntax.Syntax syntax,
EntityReference sourceReference)
Parses the given HTML fragment and renders the result in annotated XHTML syntax.
|
String |
toHTML(String source,
String syntaxId)
Deprecated.
since 11.9RC1, use
toHTML(String, Syntax, EntityReference) instead |
default String |
toHTML(String source,
org.xwiki.rendering.syntax.Syntax syntax,
EntityReference sourceReference)
Converts the given source text from the specified syntax to HTML.
|
@Deprecated String toHTML(String source, String syntaxId)
toHTML(String, Syntax, EntityReference)
insteadsource
- the text to be convertedsyntaxId
- the syntax of the sourcedefault String toHTML(String source, org.xwiki.rendering.syntax.Syntax syntax, EntityReference sourceReference)
source
- the text to be convertedsyntax
- the syntax of the sourcesourceReference
- the reference of the sourceString fromHTML(String html, String syntaxId)
html
- the HTML text to be convertedsyntaxId
- the syntax identifier@Deprecated String parseAndRender(String html, String syntax)
parseAndRender(String, Syntax, EntityReference)
insteadhtml
- the HTML fragment to be parsed and renderedsyntax
- the storage syntaxdefault String parseAndRender(String html, org.xwiki.rendering.syntax.Syntax syntax, EntityReference sourceReference)
html
- the HTML fragment to be parsed and renderedsyntax
- the storage syntaxsourceReference
- the reference of the html (where it's coming from)Copyright © 2004–2022 XWiki. All rights reserved.