Featured Post

SCAM – Itezy.net 0800 098 8470

I’ve just had a phone call from Mike Cooper at “Microsoft” claiming that they will provide me with free IT support. He advised me that I was being called because when Internet Explorer crashed and I pressed Report this to Microsoft the problem was so important they phoned me and that...

Read More

Alt attributes on LibDem Blogs

Posted by Ryan Cullen | Posted in LibDemBlogs | Posted on 22nd January 2006

0

Just an update to the LibDem Blog code.
I’ve added this line of code

$text = preg_replace(‘/<img.*?alt=(“|\’)(.*?)\1.*?>/i’, ‘ {$2} ‘, $text);

Which replaces <img xsrc=”http://blog.artesea.co.uk/images/ming.png/” mce_src=”http://blog.artesea.co.uk/images/ming.png/” alt=”Ming T-Shirt” /> with {Ming T-Shirt}


Write a comment

Do you agree to the T&Cs?