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

145
Views
How can i get these html tags removed in my react app

<figure class="image"><img scr="https://res.cloudinary.com/dfyhqttyxe/image/upload/v163126647133/zenith/uozgem6icqsrt3bitab6.jpg"></figure><p>The body</p>

I am using editor in a ReactJS project where I need to render the editor content as React DOM html element on a next page.

All the contents written in the editor get rendered properly but I don't know how I can get the p , figure class and image tags removed. I just want the image url and the text .

If I attach any image url in the editor then the url appears as anchor tag as the src attribute of the img tag.

I need to remove that unwanted malformed anchor tag from the image src attribute and replace it will the image url.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Its typo mistake

Correct tag is 'img' and try 'src' attribute instead of 'scr'

about 4 years ago · Juan Pablo Isaza Report
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!