]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - inc/3rdparty/libraries/send2kindle/utils.php
3 * Utils for news2kindle
4 * @author jwest <jwest@jwest.pl>
11 * @return string $ar_url
13 public static function urlencode( $url )
15 $ar_url = explode( '/', $url );
17 foreach ( $ar_url as $key => $val )
19 $ar_url[ $key ] = urlencode( $val );
22 return implode('/', $ar_url );
26 * Prepare ID for google rss article
30 public static function prepare_id($id)
32 $char_in = array('/', '.', ',', ':');
33 $id = str_replace($char_in, '-', $id);