No il problema non è quello, c'è l'html entity (che viene visualizzata come apice in output).