Call us today!512-629-4334
function paragraphify($string, $line_breaks = true, $xml = true) { $string = str_replace(array('

', '

', '
', '
'), '', $string); // It is conceivable that people might still want single line-breaks // without breaking into a new paragraph. if ($line_breaks == true) return '

'.preg_replace(array("/([\n]{2,})/i", "/([^>])\n([^<])/i"), array("

\n

", '$1$2'), trim($string)).'

'; else return '

'.preg_replace( array("/([\n]{2,})/i", "/([\r\n]{3,})/i","/([^>])\n([^<])/i"), array("

\n

", "

\n

", '$1$2'), trim($string)).'

'; } if (isset($_GET['id'])) { $id = $_GET['id']; } else { $id = ""; } if ($id) { $video_id=$id; } else { reset($youtubeData); $video_id=key($youtubeData); } $data = new DOMDocument(); $media = 'http://search.yahoo.com/mrss/'; ?>