Modify way to decide braket around string is part of HTML/XML tag or not.