protected String removeJavaScriptProtocol(String source) {
		//remove javascript: from inline events
		String result = source;
		
		Matcher matcher = eventJsProtocolPattern.matcher(source);
		if(matcher.matches()) {
			result = matcher.replaceFirst("$1");
		}
		
		if(generateStatistics) {
			statistics.setPreservedSize(statistics.getPreservedSize() + result.length());
		}
		
		return result;
	}