Skip to content

Instantly share code, notes, and snippets.

@chrismeller
Created March 21, 2011 19:29
Show Gist options
  • Save chrismeller/880038 to your computer and use it in GitHub Desktop.
Save chrismeller/880038 to your computer and use it in GitHub Desktop.
<?php
define('UNIT_TEST', true);
include('index.php');
header( 'Content-Type: text/html;charset=utf-8' );
$url = '&#104;&#116;&#116;&#112;&#58;&#47;&#47;&#1087;&#1088;&#1080;&#1084;&#1077;&#1088;&#46;&#1080;&#1089;&#1087;&#1099;&#1090;&#1072;&#1085;&#1080;&#1077;';
$url = html_entity_decode( $url, null, 'UTF-8' );
Utils::debug($url);
$parse = InputFilter::parse_url($url);
$glue = InputFilter::glue_url($parse);
Utils::debug( $parse, $glue );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment