Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

122
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!