Trapped with a Vengeance is the second part of the 36th of season 2, which aired on April 22, 1998. In this episode, Yani, the janitor at Huber Elementary, plots his revenge on Dexter for making him stay overnight to clean up his messes.
At the end of the episode, the doors to the outside opens both ways, since Yani opened it by pushing them to the outside, while his wife opened them by pushing them to the inside.
This episode ends with Puppet Pals Mitch and Clem singing "Bottles of Bonk on the Wall".
Yani would've been arrested because he committed several crimes in this episode such as kidnapping and trapping Dexter against his own will in Huber Elementary and aggressive battery. It is unknown if Dexter reported Yani to the authorities or if Yani was either sent to prison or fired.
The title of this episode is a reference to the 1995 action movie Die Hard with a Vengeance; also the scenes where Dexter is crawling in the vents is probably a nod to the first Die Hard movie where the film's main protagonist, John McClane, crawls through the vents of the Nakatomi Plaza. One of the scenes features Dexter walking on potato chips barefoot, referencing how John McLane (Bruce Willis) walked through shattered glass barefoot.
Despite to the fact that the main door was opened by the janitor's wife during the fight, the door was closed again after that the wife scolded to the janitor and even she asked Dexter to opened it with the keys of the janitor, as if the doors was never opened.
Throughout the episode, Yani's mustache is simulated as a mouth, but in one shot when Dexter's alarm goes off, his mouth actually moves when he says "Sure, Dexter, no problem."
Yani is sitting in the janitor closet scheming a plot.