A woman was rescued Monday in Beechview when she became stuck in a vehicle, the Pittsburgh Department of Public Safety said.

She was trying to get out of the car after it struck a pole on the 300 block of Brookside Avenue, said Alicia George, a Public Safety spokeswoman. The vehicle had come to rest against a muddy embankment, and the woman’s leg got trapped inside as she attempted to climb out the door, Ms. George said.

Rescue crews stabilized the car and got her out safely, according to the city. The woman was taken to a hospital in stable condition with very minor injuries, Ms. George said.

No one else was in the car, she said. City police and medics responded about 9:20 a.m.