<htmlFilter> Element

This element provides the HTML filter settings for use within Ephox EditLive! for Java.

Element Tree Structure

<editLiveForJava>
    <htmlFilter>

<editLiveForJava>
     ...
     <htmlFilter ... />
     ...
</editLiveForJava>

Required Attributes

Attribute Description
wrapLength Specifies the number of characters for each line.

Optional Attributes

Attribute Description
characterEncoding This Attribute has been Deprecated
This option specifies the character encoding for EditLive! for Java.  If left blank the default value will be used.
Note:  This attribute has two possible values; ascii or latin.
Default Value:  ascii
This Attribute has been Deprecated
indentContent This option specifies that EditLive! for Java will indent the content of appropriate tags, thus creating well formatted HTML source code.  If left blank the default value will be used.
Note:  This attribute is a boolean and can only be true or false
Default Value:  true
logicalEmphasis If set to true <B> tags will be replaced by <STRONG> tags and <I> tags will be replaced by <EM> tags.  If left blank the default value will be used.
Note:  This attribute is a boolean and can only be true or false
Default Value:  true
outputXHTML If set to true output is created as XHTML.  If left blank the default value will be used.
Note:  This attribute is a boolean and can only be true or false
Default Value:  true
outputXML If set to true output is created as XML.  If left blank the default value will be used.
Note:  This attribute is a boolean and can only be true or false
Default Value:  true
removeFontTags If set to true EditLive! for Java will discard all font tags.  If left blank the default value will be used.
Note:  This attribute is a boolean and can only be true or false
Default Value:  true
uppercaseAttributes If set to true attributes will be in uppercase within the source.  If left blank the default value will be used.
Note:  This attribute is a boolean and can only be true or false
Default Value:  true
uppercaseTags If set to true tags will be in uppercase within the source.  If left blank the default value will be used.
Note:  This attribute is a boolean and can only be true or false
Default Value:  true
quoteMarks If set to true quotation marks (") will be escaped and therefore appear as "&quot;".  If left blank the default value will be used.
Note:  This attribute is a boolean and can only be true or false
Default Value:  true

Example

The following example demonstrates how to set the various attributes of the <htmlFilter> element.

    <editLiveForJava>
        ...
        <htmlFilter wrapLength="68" characterEncoding="ascii" indentContent="true" logicalEmphasis="true" />
        ...
    </editLiveForJava>

Remarks

The <htmlFilter> element can appear only once within the <editLiveForJava> element.

The <htmlFilter> element must be a complete tag, it cannot contain a tag body.  Therefore the tag must be closed in the same line.  See the example below:

    <htmlFilter wrapLength=... />

See Also