apply basic html syntax first for html tags