Skip to content

Instantly share code, notes, and snippets.

@objectivehtml
Created February 28, 2013 15:03
Show Gist options
  • Select an option

  • Save objectivehtml/5057367 to your computer and use it in GitHub Desktop.

Select an option

Save objectivehtml/5057367 to your computer and use it in GitHub Desktop.
public function post_parse($parsed_hook)
{
if($this->hook['service'] != 'ExpressionEngine')
{
$parsed_hook['message'] = preg_replace('/'.LD.'\/?unwrap'.RD.'/u', '', $parsed_hook['message']);
}
return $parsed_hook;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment