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

124
Vistas
Custom HTML within React MUI tags

I'm currently working on a personal portfolio website where I will be inputting various work experiences, portfolio entries and the like.

In the description of these experiences I would like to have some freedom in the formatting. For example, I might want to add a list in the description. Or I'd like to be able to bold, or italicize different elements in the description.

I'm currently rendering each entry using the map function, and inserting HTML tags in the description just renders the tags in plaintext.

{myExperiences.map((experience) => (
    <CardContent sx={{ flexGrow: 1 }}>
        <Typography gutterBottom variant="h5" component="h2">
            {experience.name}
        </Typography>
        <Typography gutterBottom component="h2">
            {experience.title}
        </Typography>
        <Typography>
            {experience.description} {/* Custom formatting for some entries here */}
        </Typography>
        <Typography sx={{ color: "gray" }}>
            {experience.startDate} - {experience.endDate}
        </Typography>
        <Typography sx={{ color: "gray" }}>
            {experience.location}
        </Typography>
    </CardContent>
))}

What would be a good way to add custom formatting for certain entries? Ideally the custom formatting shouldn't interfere too much with the rest of the code, however I'm not sure how I'd be able to implement it in a standardized way like this. The formatted descriptions should also be able to be placed in a database

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