Package io.meeds.social.html.service
Interface HtmlTransformerService
public interface HtmlTransformerService
A service used to transform a HTML content for display
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlugin(HtmlTransformerPlugin transformerPlugin) Add new Transformer Plugin to consider while transforming the html to disaply in UIvoidremovePlugin(HtmlTransformerPlugin transformerPlugin) Removes a plugin that was previously addedtransform(String html, HtmlTransformerContext context) Transforms the HTML input into content ready to display
-
Method Details
-
transform
Transforms the HTML input into content ready to display- Parameters:
html- HTML inputcontext- HTML transformation context of typeHtmlTransformerContext- Returns:
- transformed HTML output
-
addPlugin
Add new Transformer Plugin to consider while transforming the html to disaply in UI- Parameters:
transformerPlugin-HtmlTransformerPlugin
-
removePlugin
Removes a plugin that was previously added- Parameters:
transformerPlugin-HtmlTransformerPlugin
-