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

143
Vistas
Is the HTML output of quill.root.innerHTML always safe?

I want to save and load the rich text from a Quill editor. My plan is to call JSON.stringify(quill.getContents()) and save the resulting JSON. Then to load and display the rich text I would do:

quill.setContents(JSON.parse(myJson));
myDiv.innerHTML = quill.root.innerHTML;

My question: is it the case that regardless of the contents of the myJson string, the above will only render the standard HTML tags which Quill supports? i.e. is it impossible to pick the myJson string in a way that the resulting HTML does something which couldn't have been accomplished by using the Quill editor UI in the intended way?

For example - if I have configured Quill to not allow images, I wouldn't want it to be possible to create a JSON string which would result in the above code rendering an image.

about 4 years ago · Juan Pablo Isaza
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