Lo aconsejable es usar 
htmlentities() ya que todo los carácteres que tenga en HTML se transforma en el mismo, osea:    
Código PHP:
Ver original- $comentario = "¿cómo estás?"; 
-   
- echo htmlentities($comentario, ENT_QUOTES); // devuelve: ¿cómo estás?