module.exports = {
	encodeHtml: function ( str, br )
	{
		str = ( str + "" ).replace(/&/g, "&")
			.replace(//g, ">")
			.replace(/"/g, """)
			.replace(/'/g, "'")
		;
		if( br ) str = str.replace( /\n/g, "
" );
		return str;
	}
	, http_str: function( str )
	{
		if( str.match( "^https?://" ) ) 
		{
			return str;
		}
		return "http://" + str;
	}
}