Warning, /webapps/ocs-webserver/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.RemoveEmpty.txt is written in an unsupported language. File is not indexed.

0001 AutoFormat.RemoveEmpty
0002 TYPE: bool
0003 VERSION: 3.2.0
0004 DEFAULT: false
0005 --DESCRIPTION--
0006 <p>
0007   When enabled, HTML Purifier will attempt to remove empty elements that
0008   contribute no semantic information to the document. The following types
0009   of nodes will be removed:
0010 </p>
0011 <ul><li>
0012     Tags with no attributes and no content, and that are not empty
0013     elements (remove <code>&lt;a&gt;&lt;/a&gt;</code> but not
0014     <code>&lt;br /&gt;</code>), and
0015   </li>
0016   <li>
0017     Tags with no content, except for:<ul>
0018       <li>The <code>colgroup</code> element, or</li>
0019       <li>
0020         Elements with the <code>id</code> or <code>name</code> attribute,
0021         when those attributes are permitted on those elements.
0022       </li>
0023     </ul></li>
0024 </ul>
0025 <p>
0026   Please be very careful when using this functionality; while it may not
0027   seem that empty elements contain useful information, they can alter the
0028   layout of a document given appropriate styling. This directive is most
0029   useful when you are processing machine-generated HTML, please avoid using
0030   it on regular user HTML.
0031 </p>
0032 <p>
0033   Elements that contain only whitespace will be treated as empty. Non-breaking
0034   spaces, however, do not count as whitespace. See
0035   %AutoFormat.RemoveEmpty.RemoveNbsp for alternate behavior.
0036 </p>
0037 <p>
0038   This algorithm is not perfect; you may still notice some empty tags,
0039   particularly if a node had elements, but those elements were later removed
0040   because they were not permitted in that context, or tags that, after
0041   being auto-closed by another tag, where empty. This is for safety reasons
0042   to prevent clever code from breaking validation. The general rule of thumb:
0043   if a tag looked empty on the way in, it will get removed; if HTML Purifier
0044   made it empty, it will stay.
0045 </p>
0046 --# vim: et sw=4 sts=4