remove line break characters

preg_replace to get rid of those pesky line break characters.

Particularly for Google Maps bubble’s which take an aversion to non-ASCII chars so as to stop a map rendering altogether.

Non-ACSII characters
This piece of code should be applied when generating a Google Map using any quantity of user generated material.

function removelinebreaks($string)
{
return preg_replace(‘/[\r\n\t]/e’, ‘ ‘, $string);
}

Also make sure you trim your bubbles, and if you’re particularly nervous check the htmlentities and CDATA[ declarations also.

Makes for happier bubbles :)

EMI – It’s a Hand job

Speaking at the SuperReturn Private equity business conference

“I know how feisty and temperamental artistic types can be and having spent a number of years on the fringes of the music industry myself, I can bear testament to what a bunch of awkward twats they can be.”

“What we are doing is taking the power away from the A&R guys and putting it with the suits – the guys who have to work out how to sell music.”

Does this mean the future of EMI lays in the hands of ‘Hands‘ picked SImon Cowell protege’s?

Far from breath life into EMI, with a day-traders mentality; This ‘guy’s going to undermine creativity, and de-stabalise the long term future EMI and it’s dependents.

Hallelujah.