Handle tags characters in attributes