Location: PHPKode > scripts > XCS Parser > xcs-parser/examples/noexpr.php
<?php
/**
 * Forbidden expressions statements test/demo file
 * for XcsParser class.
 */

error_reporting(E_ALL | E_STRICT);
include '../lib/XcsParser_class.php';

$css = file_get_contents('../etc/style.css');
$sp = new XcsParser($css);

echo $sp->setAllowExpressions(false)->parse()->getCss();
?>
Return current item: XCS Parser