public interface HTMLCleanerConfiguration
HTMLCleaner
and allows to configure the cleaning parameters and cleaning
filters to apply.Modifier and Type | Field and Description |
---|---|
static String |
NAMESPACES_AWARE
Cleaning property identifier which decides if parsing should omit/keep namespace information.
|
static String |
RESTRICTED
Cleaning in restricted mode (
<script> and <style> should not be allowed for example). |
static String |
USE_CHARACTER_REFERENCES
Cleaning property that controls whether the output HTML should use character references rather than entity
references.
|
Modifier and Type | Method and Description |
---|---|
List<HTMLFilter> |
getFilters() |
Map<String,String> |
getParameters() |
void |
setFilters(List<HTMLFilter> filters) |
void |
setParameters(Map<String,String> cleaningParameters) |
static final String NAMESPACES_AWARE
static final String RESTRICTED
<script>
and <style>
should not be allowed for example).static final String USE_CHARACTER_REFERENCES
List<HTMLFilter> getFilters()
void setFilters(List<HTMLFilter> filters)
filters
- the ordered list of filters to use for cleaning the HTML contentMap<String,String> getParameters()
Copyright © 2004–2019 XWiki. All rights reserved.