DSFriend asked whether we should stay away from angry people as a start to minimize such occurrences and what should we meditate on regarding the afflicted person, and how to prevent getting trapped into an unpleasant situation.
First, dealing with the angry person.
Geshe Kelsang Gyatso in his book Transform Your life: A Blissful Journey mentions that,
All the faults we see in people are actually the faults of their delusions, not of the people themselves. If someone is angry, we think "He is a bad and angry person,' whereas Buddhas think 'He is a suffering being afflicted with the inner disease of anger.' If a friend of ours were suffering cancer we would not blame him for his physical disease, and, in the same way, if someone is suffering from anger or attachment we should not blame him for the diseases of his mind.
In the fourth of the Eight Verses of Mind Transformation, it is said:
Whenever I meet a person of bad nature
overwhelmed by negative energy and intense suffering
I will hold such a rare one dear
as if I've found a precious treasure
If we practice the path of a Bodhisattva, then of course, not correcting others who are motivated by delusions is one of the downfall hence we should try our best to help relieve that deluded and angry person from his or her suffering. Usually, lending a pair of ears or showing genuine care in the long run will help. We should not avoid the situation or stay away from them because if we do, then our loving concern for others is liable to decrease.
Secondly, dealing with anger or the affliction/delusion itself.
I like what Shantideva said,
“If you are going to get angry at something, get angry at mental afflictions, because people are just puppets on the end of the string of their own mental afflictions. If you are going to get angry, direct your wrath towards mental afflictions.”
When we talk about delusions, the root of the delusions is ignorance (of cause and effect), so one develops the delusions such as aversion/hatred, attachment, pride. To abandon delusion for good, one must apply the antidote to ignorance and to grasping at a self through selflessness.
For practitioners, The Kadampa masters advised that the best attainment is developing faith in cause and effect, living in pure ethics, and eliminating one’s delusions and negative states of mind. By having faith in cause and effect, one is able to live in pure ethics, and by living in pure ethics, one is able to eliminate the delusions from one’s mind.