org.mmbase.datatypes.processors.xml
Class HtmlSetString
java.lang.Object
org.mmbase.datatypes.processors.xml.HtmlSetString
- All Implemented Interfaces:
- Serializable, Processor
public class HtmlSetString
- extends Object
- implements Processor
This set-processor is used for HTML fields. If a valid Document is given, this is supposed to be
HTML. Otherwise the value is converted to a String, and then parsed to SAX compliant XML. (Cross Site)
Scripting tags and attributes are removed using TagStripperFactory. If the XML is not a valid Document (not one,
but more document element), a surrounding 'div' tag is implicetely added.
- Since:
- MMBase-1.8
- Version:
- $Id: HtmlSetString.java 41987 2010-04-20 16:14:35Z michiel $
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
PREF
protected static final String PREF
- See Also:
- Constant Field Values
POST
protected static final String POST
- See Also:
- Constant Field Values
HtmlSetString
public HtmlSetString()
process
public Object process(Node node,
Field field,
Object value)
- Specified by:
process in interface Processor
- Parameters:
node - The node object for which the field must be transformed.field - The field which is set.value - The (new) field value.
toString
public String toString()
- Overrides:
toString in class Object
MMBase 2.0-SNAPSHOT - null