According to the New Testament Bible, Jesus did talk to prostitutes. He had compassion on them because they were trapped in sin (in wrongdoing). He spoke to everyone. There is no type of person that was excluded. Since Jesus came to die for the sins (wrongdoing) of mankind, sin did not prevent Him from loving people. He loved all sinners, including prostitutes.
Read here the story of Jesus with a prostitute as seen in the Gospel of Luke in the New Testament Bible:
36 Then one of the Pharisees asked Him to eat with him. And He went to the Pharisee’s house, and sat down to eat. 37 And behold, a woman in the city who was a sinner, when she knew that Jesus sat at the table in the Pharisee’s house, brought an alabaster flask of fragrant oil, 38 and stood at His feet behind Him weeping; and she began to wash His feet with her tears, and wiped them with the hair of her head; and she kissed His feet and anointed them with the fragrant oil. 39 Now when the Pharisee who had invited Him saw this, he spoke to himself, saying, “This Man, if He were a prophet, would know who and what manner of woman this is who is touching Him, for she is a sinner.”
40 And Jesus answered and said to him, “Simon, I have something to say to you.”
So he said, “Teacher, say it.”
41 “There was a certain creditor who had two debtors. One owed five hundred denarii, and the other fifty. 42 And when they had nothing with which to repay, he freely forgave them both. Tell Me, therefore, which of them will love him more?”
43 Simon answered and said, “I suppose the one whom he forgave more.”
And He said to him, “You have rightly judged.” 44 Then He turned to the woman and said to Simon, “Do you see this woman? I entered your house; you gave Me no water for My feet, but she has washed My feet with her tears and wiped them with the hair of her head. 45 You gave Me no kiss, but this woman has not ceased to kiss My feet since the time I came in. 46 You did not anoint My head with oil, but this woman has anointed My feet with fragrant oil. 47 Therefore I say to you, her sins, which are many, are forgiven, for she loved much. But to whom little is forgiven, the same loves little.”
48 Then He said to her, “Your sins are forgiven.”
49 And those who sat at the table with Him began to say to themselves, “Who is this who even forgives sins?”
50 Then He said to the woman, “Your faith has saved you. Go in peace.”
(New King James Version).
Category: Did Jesus talk to prostitutes?