use of org.xwiki.xml.html.HTMLCleanerConfiguration in project xwiki-platform by xwiki.
the class WysiwygHTMLCleaner method getDefaultConfiguration.
@Override
public HTMLCleanerConfiguration getDefaultConfiguration() {
HTMLCleanerConfiguration configuration = this.defaultHtmlCleaner.getDefaultConfiguration();
// Add office cleaning filters after the default filters.
List<HTMLFilter> filters = new ArrayList<HTMLFilter>(configuration.getFilters());
filters.addAll(Arrays.asList(this.stripperFilter, this.styleFilter, this.redundancyFilter, this.paragraphFilter, this.imageFilter, this.listFilter, this.tableFilter));
configuration.setFilters(filters);
return configuration;
}
Aggregations