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

160
Views
How to fetch editor data in nextjs

I am working with next.js and i am trying to fetch data from database via api, I want to know

  1. How can we use image path while fetching records (in database/api, image name is "ab.png" and full url will be like "https://anyurl.com/img/abc.png")
  2. How can we display "editor data" as simple text ( for example in my datbase/api,data is showing as "<p>Hello admin</p>" but i want to display only "Hello admin")

Here is my code

{
  this.state.trending.map((post, index) => {
    return (
      <div class='col-md-4 col-sm-12 col-lg-4 mt10'>
        <div class='article'>
          <img src={post.image} />
          <div class='article-text'>
            <h3>{post.title}</h3>
            <p>Lorem Ipsum dummy text...</p>
          </div>
        </div>
      </div>
    );
  });
}
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!