PHPackages                             kaero598/htmlpurifier-conditionalcomments-filter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. kaero598/htmlpurifier-conditionalcomments-filter

ActiveLibrary[Search &amp; Filtering](/categories/search)

kaero598/htmlpurifier-conditionalcomments-filter
================================================

IE conditional comments filter for HTMLPurifier

1.0.0(2y ago)197.9k↑49.1%MITPHPPHP &gt;= 8.2

Since Sep 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/kaero598/htmlpurifier-conditionalcomments-filter)[ Packagist](https://packagist.org/packages/kaero598/htmlpurifier-conditionalcomments-filter)[ RSS](/packages/kaero598-htmlpurifier-conditionalcomments-filter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

IE conditional comments filter for [HTMLPurifier](https://github.com/ezyang/htmlpurifier)
=========================================================================================

[](#ie-conditional-comments-filter-for-htmlpurifier)

HTMLPurifier always removes IE conditional comments from HTML and there is no way to alter that behavior without touching the sources.

Conditional comments filter disguises IE conditional comments as plain tags and reverts them back after HTMLPurifier has purified HTML. This also means that HTML inside conditional comments also gets purified.

Example
-------

[](#example)

```
