Parse @keep directives in HTML mode