org.xwiki.xml.internal.html.filter
Class BodyFilter

java.lang.Object
  extended by org.xwiki.xml.html.filter.AbstractHTMLFilter
      extended by org.xwiki.xml.internal.html.filter.BodyFilter
All Implemented Interfaces:
HTMLFilter, HTMLConstants

@Component
@Named(value="body")
@Singleton
public class BodyFilter
extends AbstractHTMLFilter

Wraps direct children of the Body tag with paragraphs. For example a <table>...</table> b <p>c</p> d is transformed into

a

...

b

c

d

.

Since:
1.8RC3
Version:
$Id$

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
BodyFilter()
           
 
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

BodyFilter

public BodyFilter()
Method Detail

filter

public void filter(Document document,
                   Map<String,String> cleaningParameters)
Performs cleaning of the html code stored in Document.

Parameters:
document - The Document with html code
cleaningParameters - additional cleaning parameters for the filter.
See Also:
HTMLFilter.filter(Document, Map)


Copyright © 2004-2011 XWiki. All Rights Reserved.