org.carrot2.filter.trc.carrot.tokenizer
Class CommonEntityResolver
java.lang.Object
org.carrot2.filter.trc.carrot.tokenizer.CommonEntityResolver
- All Implemented Interfaces:
- HTMLEntityResolver
public class CommonEntityResolver
- extends Object
- implements HTMLEntityResolver
Resolve HTML Entity to its text form (  -> " ", & -> "&", etc)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENTITIES
protected static final String[] ENTITIES
TEXT
protected static final String[] TEXT
CommonEntityResolver
public CommonEntityResolver()
resolve
public String resolve(String entity)
- Resolve most common entities to its form
- Specified by:
resolve in interface HTMLEntityResolver
- Parameters:
entity -
Copyright (c) Dawid Weiss, Stanislaw Osinski