|
Navigation: How to... > Ignore Part of a Document |
![]() ![]()
|
There are some cases where you may want CSE HTML Validator to ignore, exclude, or bypass part of a document. For example, some sites (such as affiliate sites) give you bad HTML to insert into your documents, but you don't want to change or fix it because you'd rather just ignore it and leave it as it is.
To address this issue, CSE HTML Validator provides the "cseignore" element. Simply surround the part of the document you want to ignore in "cseignore" tags. Example: <cseignore>...ignore this...</cseignore>
For better compatibility with other syntax checkers and validators, <!--cseignore--> (case sensitive) can be used to simulate a <cseignore> start tag and <!--/cseignore--> (case sensitive) can be used to simulate a </cseignore> end tag. (New v8.04)
NOTE: The "cseignore" element is included with the default configuration file. Using another configuration file may mean that the "cseignore" element is not supported.
NOTE: The "cseignore" element only works with CSE HTML Validator's own validation engine. This element is not recognized by HTML Tidy or nsgmls which may be optionally enabled (but are not enabled by default).