prevent matched partial html tags from breaking views