ignoring HTML tags inside curly braces