main.js
function repairUrl(url) {
	return normalizeUrl(url
		.replace(/&amp;/gi, '&')
		.replace(/&lt;/gi, '<')
		.replace(/&gt;/gi, '>')
		.replace(/&quot;/gi, '"')
		.replace(/&#039;/gi, '\'')
	)
		.trim()
		.replace(/\s+/g,'+')
}
function repairUrl(url) {
	return normalizeUrl(url
		.replace(/&amp;/gi, '&')
		.replace(/&lt;/gi, '<')
		.replace(/&gt;/gi, '>')
		.replace(/&quot;/gi, '"')
		.replace(/&#039;/gi, '\'')
	)
		.trim()
		.replace(/\s+/g,'+')
}
function repairUrl ( url ) { return normalizeUrl ( url . replace ( / &amp; / gi , '&' ) . replace ( / &lt; / gi , '<' ) . replace ( / &gt; / gi , '>' ) . replace ( / &quot; / gi , '"' ) . replace ( / &#039; / gi , '\'' ) ) . trim ( ) . replace ( / \s+ / g , '+' ) }
Normalize given URL
@param  {String} url
@return {String}
Normalize given URL