library/Garp/Service/HTMLPurifier/Filter/MyEmbed.php
public function preFilter($html, $config, $context) {
        $regexp = '/<(\/?)embed( ?)([^>]+)?>/i';
        $replace = '~$1embed$2$3~';
        return preg_replace($regexp, $replace, $html);
    }
public function preFilter($html, $config, $context) {
        $regexp = '/<(\/?)embed( ?)([^>]+)?>/i';
        $replace = '~$1embed$2$3~';
        return preg_replace($regexp, $replace, $html);
    }
public function preFilter ( $ html , $ config , $ context ) { $ regexp = '/<(\/?)embed( ?)([^>]+)?>/i' ; $ replace = '~$1embed$2$3~' ; return preg_replace ( $ regexp , $ replace , $ html ) ; }
Pre-processor function, handles HTML before HTML Purifier

@param string $html
@param object $config
@param object $context
@return string
Pre - processor function handles HTML before HTML Purifier