Se non vuoi che ti inseriscano dell'html ti basta applicare la funzione htmlspecialchars().