|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.xml.html.filter.AbstractHTMLFilter
org.xwiki.xml.internal.html.filter.ListFilter
@Component @Named(value="list") @Singleton public class ListFilter
Transform non XHTML list into XHTML valid lists. Specifically, move <ul> and <ol> elements (and any other nodes that are not allowed) nested inside a <ul> or <ol> element inside the previous <li> element.
For example: becomes
<ul>
<li>item1</li>
<ul>
<li>item2</li>
</ul>
</ul>
<ul>
<li>item1
<ul>
<li>item2</li>
</ul>
</li>
</ul>
| Field Summary |
|---|
| Fields inherited from interface org.xwiki.xml.html.HTMLConstants |
|---|
ATTRIBUTE_ALIGN, ATTRIBUTE_ALT, ATTRIBUTE_CLASS, ATTRIBUTE_FONTCOLOR, ATTRIBUTE_FONTFACE, ATTRIBUTE_FONTSIZE, ATTRIBUTE_HREF, ATTRIBUTE_NAME, ATTRIBUTE_ROWSPAN, ATTRIBUTE_SRC, ATTRIBUTE_STYLE, TAG_A, TAG_ABBR, TAG_ACRONYM, TAG_ADDRESS, TAG_B, TAG_BLOCKQUOTE, TAG_BODY, TAG_BR, TAG_CENTER, TAG_CITE, TAG_CODE, TAG_DEL, TAG_DFN, TAG_DIV, TAG_DL, TAG_EM, TAG_FIELDSET, TAG_FONT, TAG_FORM, TAG_H1, TAG_H2, TAG_H3, TAG_H4, TAG_H5, TAG_H6, TAG_HEAD, TAG_HR, TAG_HTML, TAG_I, TAG_IMG, TAG_INS, TAG_KBD, TAG_LI, TAG_NOSCRIPT, TAG_OL, TAG_P, TAG_PRE, TAG_Q, TAG_S, TAG_SAMP, TAG_SCRIPT, TAG_SPAN, TAG_STRIKE, TAG_STRONG, TAG_STYLE, TAG_TABLE, TAG_TD, TAG_TH, TAG_TR, TAG_U, TAG_UL, TAG_VAR, WHITE_SPACE_CHARS |
| Constructor Summary | |
|---|---|
ListFilter()
|
|
| Method Summary | |
|---|---|
void |
filter(Document document,
Map<String,String> cleaningParameters)
Performs cleaning of the html code stored in Document. |
| Methods inherited from class org.xwiki.xml.html.filter.AbstractHTMLFilter |
|---|
filterChildren, filterDescendants, filterDescendants, hasAttribute, moveChildren, replaceWithChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ListFilter()
| Method Detail |
|---|
public void filter(Document document,
Map<String,String> cleaningParameters)
Document.
The ListFilter does not use any cleaningParameters passed in.
document - The Document with html codecleaningParameters - additional cleaning parameters for the filter.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||