fix rendering of snippet's tags