jhy/jsoup — Issue #163: make EscapeMode a class, not enum
Author: Nowaker
Created: 2011-12-29 13:00:35+00:00
State: open

Please migrate EscapeMode to be a standard class, not enum. Enum makes the library inflexible - and that's why people beg you to add some new escape modes of their need.

doc.outputSettings().prettyPrint(false).escapeMode(EscapeMode.XHTML); // predefined
doc.outputSettings().prettyPrint(false).escapeMode(new EscapeMode() { ... }); // mine