remove comment tags when checking templates
ignore <br>
better removal of full ref tags