]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/UrlShortener/UrlShortenerPlugin.php
Merge branch '0.9.x' into activityexport
[quix0rs-gnu-social.git] / plugins / UrlShortener / UrlShortenerPlugin.php
index 37206aa896e2cf04493c9719afa2fdabf11cdff4..41f64bb26d9e9999b905fe48118f9485070ad351 100644 (file)
@@ -22,6 +22,7 @@
  * @category  Plugin
  * @package   StatusNet
  * @author    Craig Andrews <candrews@integralblue.com>
+ * @copyright 2009 Free Software Foundation, Inc http://www.fsf.org
  * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
  * @link      http://status.net/
  */
@@ -68,14 +69,6 @@ abstract class UrlShortenerPlugin extends Plugin
         return $response->getBody();
     }
 
-    protected function tidy($response) {
-        $response = str_replace('&nbsp;', ' ', $response);
-        $config = array('output-xhtml' => true);
-        $tidy = new tidy;
-        $tidy->parseString($response, $config, 'utf8');
-        $tidy->cleanRepair();
-        return (string)$tidy;
-    }
     //------------Below are the methods that connect StatusNet to the implementing Url Shortener plugin------------\\
 
     function onInitializePlugin(){