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

387
Vistas
Replace Apostrophe (') and Ampersand (&) with HTML Tags

I have a very long string from a database query that I have to provide as an XML file to a third party. I am trying to replace special characters like apostrophe (') with html tag '

This script doesn't throw any error but doesn't replace the characters either.

var str = (vDescription.replace(/'|&/g,function(match){
    return {
            '\'':'\'', 
            '&':'\&'
           }[match]
}));
str = vFormattedDesc;

Sample data (vDescription): The QIS serves as expert & liaison in improvement with the clinical departments related to clinical documentation, clinical monitoring and improvements. Provides leadership in data collection, analysis, presenting the clinical report card at applicable meetings. Serves as a leader and or mentor in the area of Process Improvement for the organization and implementation of PI processes, as needed. Assist with Root Cause Analysis and quality reviews. Responsible for clinical databases with the quality department. Exemplifies the mission, vision and values and acts in accordance with Organizaton’s policies and procedures.

Sample Output: The QIS serves as expert & liaison in improvement with the clinical departments related to clinical documentation, clinical monitoring and improvements. Provides leadership in data collection, analysis, presenting the clinical report card at applicable meetings. Serves as a leader and or mentor in the area of Process Improvement for the organization and implementation of PI processes, as needed. Assist with Root Cause Analysis and quality reviews. Responsible for clinical databases with the quality department. Exemplifies the mission, vision and values and acts in accordance with Organizaton&aposs policies and procedures.

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