PHILADELPHIA EAGLES quarterback Jalen Hurts (1) passes the ball against the Dallas Cowboys during the third quarter at Lincoln Financial Field. — REUTERS

JALEN Hurts passed for two touchdowns and rushed for one more, and the Philadelphia Eagles escaped with a 28-23 win over the visiting Dallas Cowboys on Sunday evening.

A.J. Brown and DeVonta Smith had one touchdown reception apiece for Philadelphia (8-1). Kenneth Gainwell had a rushing touchdown along with Hurts, who threw for 207 yards on 17-for-23 passing.

Dak Prescott completed 29 of 44 passes for 374 yards and three touchdowns for Dallas (5-3). Jake Ferguson, KaVontae Turpin and Jalen Tolbert each had a touchdown reception, and CeeDee Lamb finished with a game-high 11 catches for 191 yards.

Dallas had a chance to make a game-winning play in the final seconds. Mr. Prescott completed his final pass to Mr. Lamb, but a swarm of Eagles defenders hit Lamb at the Philadelphia 4-yard line as time expired and forced a fumble (which the Eagles recovered).

The Eagles, who trailed by three points at the half, seized a 21-17 advantage on their first drive of the third quarter. Mr. Hurts lobbed a pinpoint pass down the left sideline to Mr. Smith for a 29-yard touchdown.

Another Hurts touchdown pass, this time to Mr. Brown, pushed the Eagles’ lead to 28-17 with 1:13 left in the third quarter. The 4-yard play marked Mr. Brown’s team-high sixth touchdown catch of the season.

Dallas pulled within 28-23 with 6:23 remaining in the fourth quarter. Mr. Prescott connected with Mr. Tolbert for a 7-yard touchdown. The Cowboys tried for a two-point conversion moments later, but Mr. Prescott stepped out of bounds before he could cross the goal line.

Philadelphia opened the scoring just over midway through the first quarter. Mr. Gainwell sprinted toward the right sideline and somersaulted over a defender and into the end zone for a 12-yard score.

Dallas responded on the next possession to even the score at 7-7. Mr. Ferguson caught Mr. Prescott’s pass in stride and muscled past a defender for a 4-yard touchdown.

The Cowboys took a 14-7 lead early in the second quarter. On third-and-goal, Prescott zipped a 5-yard pass to Turpin just beyond the goal line.

Hurts got a friendly shove from behind to score a 1-yard touchdown with 5:09 remaining in the first half. It marked his seventh rushing score in nine games this season.

A 51-yard field goal by Brandon Aubrey gave the Cowboys a 17-14 lead before halftime.

Eagles tight end Dallas Goedert injured his right forearm in the third quarter and left the game. Mr. Goedert was hurt when a defender yanked his arm while tackling him to the ground. — Reuters