Skip to content

Instantly share code, notes, and snippets.

@bordoni
Last active August 29, 2015 14:14
Show Gist options
  • Save bordoni/5e1e16cd3fc6cba242e4 to your computer and use it in GitHub Desktop.
Save bordoni/5e1e16cd3fc6cba242e4 to your computer and use it in GitHub Desktop.
Remove HTML from Google Export Link on The Events Calendar
<?php
/*
* If you already have something in your functions.php, please remove these first few lines
*/
add_filter( 'tribe_google_calendar_parameters', 'tec_hook_938252', 11 );
function tec_hook_938252( $params ){
// Since in our code we urlencode you need to first urldecode before doing anything
$params['details'] = urlencode( strip_tags( urldecode( $params['details'] ) ) );
return $params;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment