* @copyright 2017 MyAAC
* @version 0.0.1
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');
$title = 'MyAAC - CHANGELOG';
$data = file_get_contents(SYSTEM . 'docs/CHANGELOG');
// replace special characters with HTML entities
// replace line breaks with
$data = nl2br(htmlspecialchars($data));
// replace multiple spaces with single spaces
$data = preg_replace('/\s\s+/', ' ', $data);
// replace URLs with elements
$data = preg_replace('/\s(\w+:\/\/)(\S+)/', ' \\1\\2', $data);
echo '