Updated DisplayText smartFormat function to handle url bases (View->webroot)