Location: PHPKode > projects > JaxBlog > JaxBlog/app/common/html.php
<?php

function removeNewline($value, $make_break) {
	if ($make_break) {
		$value = str_replace("\r\n", "<br />", $value);
		$value = str_replace("\r", "<br />", $value);
		$value = str_replace("\n", "<br />", $value);
	} else {
		$value = str_replace("\r\n", "", $value);
		$value = str_replace("\r", "", $value);
		$value = str_replace("\n", "", $value);
	}
	return $value;
}

function removeBreak($value, $make_newline) {
	if ($make_newline) {
		$value = str_replace("<br />", "\r\n", $value);
	} else {
		$value = str_replace("<br />", " ", $value);
	}
	return $value;
}

function cleanFolderName($title) {
	$folder = strtolower($title);
	$folder = removeNewline($folder, false);
	$folder = str_replace(' ', '_', $folder);
	$folder = str_replace('__', '_', $folder);
	$folder .= '/';
	return $folder;
}

?>
Return current item: JaxBlog