|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface I_CmsHtmlConverter
HTML converters can be used to clean up HTML code and/or pretty print the code.
They can be configured in the configuration file opencms-vfs.xml
and triggered when saving
XML contents or XML pages. Their behavior is configurable by setting the content-conversion
property
value on VFS resources.
Method Summary | |
---|---|
String |
convertToString(String htmlInput)
Converts the given HTML code according to the settings of this converter. |
String |
getEncoding()
Returns the encoding used for the HTML code conversion. |
List |
getModes()
Returns the conversion modes to use as List of String parameters. |
void |
init(String encoding,
List modes)
Initializes the HTML converter instance. |
Method Detail |
---|
String convertToString(String htmlInput) throws UnsupportedEncodingException
htmlInput
- the HTML input stored in a string
UnsupportedEncodingException
- if the encoding set for the conversion is not supportedString getEncoding()
List getModes()
void init(String encoding, List modes)
Possible values for the conversion mode are dependent from the converter implementation.
encoding
- the encoding used for the HTML code conversionmodes
- the conversion modes to use
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |