PHP - ¿Sirve este código para evitar XSS y SQLi?

Filtrado por el usuario: tete
<<>>
Filtrado por el usuario 'tete' (Eliminar fitro)
 
Vista: