bundles/org.eclipse.orion.client.cf/web/cfui/plugins/wizards/common/wizardUtils.js
function(msg){
			if (msg.HTML) {
				// msg is HTML to be inserted directly
				var span = document.createElement("span");
				span.innerHTML = msg.Message;
				return span;
			}
			msg = msg.Message || msg;
			
			var chunks, msgNode;
			try {
				chunks = URLUtil.detectValidURL(msg);
			} catch (e) {
				/* contained a corrupt URL */
				chunks = [];
			}
			
			if (chunks.length) {
				msgNode = document.createDocumentFragment();
				URLUtil.processURLSegments(msgNode, chunks);
				
				/* all status links open in new window */
				Array.prototype.forEach.call(lib.$$("a", msgNode), function(link) { //$NON-NLS-0$
					link.target = "_blank"; //$NON-NLS-0$
				});
			}
			
			return msgNode || document.createTextNode(msg);
		}
function(msg){
			if (msg.HTML) {
				// msg is HTML to be inserted directly
				var span = document.createElement("span");
				span.innerHTML = msg.Message;
				return span;
			}
			msg = msg.Message || msg;
			
			var chunks, msgNode;
			try {
				chunks = URLUtil.detectValidURL(msg);
			} catch (e) {
				/* contained a corrupt URL */
				chunks = [];
			}
			
			if (chunks.length) {
				msgNode = document.createDocumentFragment();
				URLUtil.processURLSegments(msgNode, chunks);
				
				/* all status links open in new window */
				Array.prototype.forEach.call(lib.$$("a", msgNode), function(link) { //$NON-NLS-0$
					link.target = "_blank"; //$NON-NLS-0$
				});
			}
			
			return msgNode || document.createTextNode(msg);
		}
function ( msg ) { if ( msg . HTML ) { // msg is HTML to be inserted directly var span = document . createElement ( "span" ) ; span . innerHTML = msg . Message ; return span ; } msg = msg . Message || msg ; var chunks , msgNode ; try { chunks = URLUtil . detectValidURL ( msg ) ; } catch ( e ) { /* contained a corrupt URL */ chunks = [ ] ; } if ( chunks . length ) { msgNode = document . createDocumentFragment ( ) ; URLUtil . processURLSegments ( msgNode , chunks ) ; /* all status links open in new window */ Array . prototype . forEach . call ( lib . $$ ( "a" , msgNode ) , function ( link ) { //$NON-NLS-0$ link . target = "_blank" ; //$NON-NLS-0$ } ) ; } return msgNode || document . createTextNode ( msg ) ; }
Parses the given message creating a decorated UI.
Parses the given message creating a decorated UI .