$title = trim(str_replace(array('/','?','&','=','#'),array('/<wbr />','?<wbr />','<wbr />&','=<wbr />','<wbr />#'),$title));