protected String removeQuotesInsideTags(String html) {
		//remove quotes from tag attributes
		if(removeQuotes) {
			Matcher matcher = tagQuotePattern.matcher(html);
			StringBuffer sb = new StringBuffer();
			while(matcher.find()) {
				//if quoted attribute is followed by "/" add extra space
				if(matcher.group(3).trim().length() == 0) {
					matcher.appendReplacement(sb, "=$2");
				} else {
					matcher.appendReplacement(sb, "=$2 $3");
				}
			}
			matcher.appendTail(sb);
			html = sb.toString();
			
		}
		return html;
	}