enhanced search & replace pattern for valid output, see http://www.gunnart.de/tipps-und-tricks/valide-links-mit-xtcommerce-ganz-einfach/