Last active
August 29, 2015 14:14
-
-
Save bordoni/5e1e16cd3fc6cba242e4 to your computer and use it in GitHub Desktop.
Remove HTML from Google Export Link on The Events Calendar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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