Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

114
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda