Separete endtagcomment functions as a plugin