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

115
Vistas
Sanitize HTML from Angular Reactive form fields

I have angular component consisting of Reactive Form to get user inputs. Now, I don't want to prevent user from entering HTML Tags. But, If user enters the HTML tags in input fields, then those tags should be removed at the time of submitting the form.

I do have an option to add regex validation, to reactive form, but I want to know if there is another way to solve this issue. Currently My application is accepting HTML tags as user input and this HTML is getting pass to back-end with HTML tags in it.

For ex.,

  • User enters this in angular front-end: < script > alert('Hello'); </ script >
  • Value received at node back-end : < script > alert('Hello'); </ script >

Can anyone please help me with this, Thank you in advance.

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