Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

208
Vistas
Does web push notification body need to be escaped?

Following Using the Notifications API, I can display a push notification successfully. Some of my push notifications contain user-entered text (like the user's name for example).

Do I need to escape the Notification.body from special characters before passing it to the push notification? Or is it safe to pass it any string unescaped?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Per the docs, the body of a Notification is a DOMString which is interpreted as UTF-16, the same as what String handles. Assuming what you are trying to render is available in UTF-16, you should only need to escape quotes.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda