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

369
Views
How to make lines in og:description in html

I have a description in my website and I want to make new lines in it. Can I do this? If then please help me

My code

<meta property="og:description" content="This is 1st line. This should be 2nd. And this should be 3rd line"/>

I want the content result to be like

This is 1st line.
This should be 2nd.
And this should be 3rd line

Please help me

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

0

character entities work in attributes, so this might work:"&#10";

like that:

<meta property="og:description" content="&#10;This is 1st line.&#10;This should be 2nd.&#10; And this should be 3rd line"/>
<meta property="og:description" content="
This is 1st line.
This should be 2nd.
And this should be 3rd line">
about 4 years ago · Juan Pablo Isaza Report

0

I didn't actually try it, but why not just add "\n".

<meta property="og:description" content="This is 1st line.\n This should be 2nd.\n And this should be 3rd line"/>

using line breaks in meta tags

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!