When the king heard this he imprisioned his daughter Miaoshan.
Eventually the king granted Miaoshan’s wish to be allowed to live as a nun in a temple, but he told the monks to make her work very hard.
Eventually the king had his daughter put to death by beheading, but the executioner’s axe magically broke instead of hurting her. So the king strangled her to death himself.