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

163
Visualizações
How to prevent user from putting html and Javascript inside a text user? (tinyMce)

I have a problem with tinyMCE, it seems to store the stuff user create as html, so it can keep the fonts and iamges and stuff, however I have a problem, it seems a user can insert more then just photos and different fonts and symbols, a user can put buttons and event listeners and even javascript inside the text area of the text editor.

they cant simply type it in since it would become text, but if they copy+paste it inside it does not make it text but actual html stuff.

I tried to use escape() but it messes up the tinyMCE output even when the user does not create their own stuff.

How do I fix this and prevent the user from writing their own html stuff and only letting them use the functionality of the text editor(images, fonts, symbols and code, headers and quotes(kinda like stack-overflow))?

Thanks!

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