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

144
Vistas
Input field should not allow icons with input field text JavaScript

I am trying to validate an input text field to not allow icons to be pasted into it. For example, having this:

🚁 Hello 🪂

When I tried debugging, I noticed Javascript interpreted the icons in a Unicode format. So I tried using regex to only allow letters and exclude Unicodes.

Another problem arises, that is, to allow special characters of other languages (these are also converted to a range of Unicodes by Javascript.

To solve this I had to keep adding Unicode range for each language in the regex (this is a whole lot).

I need a better solution to help remove or not allow pasting icons like above to the input text field. I will appreciate your help with this. Thanks.

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