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

140
Vistas
How to use Iframe tag with full document string

I received a string response mixed with js code and html code from the server.

<script> do some with js code...</script>
<div>
  <h1>Page Title</h1>
</div>

I was worried about xss atack, so tried to render the code on the screen with iframe. However, when the file string was put in the srcdoc attribute of iframe, the script tag did not work.

I think this problem is because the srcdoc attribute parses only the html tag. Is there any other way to use the string script code with iframe?

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