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

@param string $html
@param object $config
@param object $context
@return string
Post - processor function handles HTML after HTML Purifier