E.12 StripLineComments
Prev | Appendix E. Core filters | Next

## E.12 StripLineComments

The `StripLineComments` filter removes all line comments from the stream passed through the filter chain:

    <filterchain>
      <striplinecomments>
        <comment value="#" />
        <comment value="--" />
        <comment value="//" />
      </striplinecomments>
    </filterchain>

### E.12.1 Nested tags

The `striplinecomments` tag must contain one or more `comment` tags. These must have a `value` attribute that specifies the character(s) that start a line comment.

Prev | Up | Next
E.11 StripLineBreaks | Home | E.13 StripPhpComments