Linebreaks not working in og:description

Permalink Browser Info Environment
Hi and thanks for this useful add-on.

I'm wanting to output three lines as the og:description, being year, materials and dimensions of artwork.
I'm using the following php, but the <br> are output as part of the string in Facebook (refer attached):
<code>
$desc = "Year: " . $page->getAttribute('creation_year') ;
$desc .= "<br />";
$desc .= $page->getAttribute('medium') . ' on ' . $page->getAttribute('substrate') ;
$desc .= "<br />";
$desc .= $page->getAttribute('width') . 'cm x ' . $page->getAttribute('height') . 'cm x ' . $page->getAttribute('depth') . 'cm' ;
echo $desc;
</code>

Any help solving this would be appreciated.

PK

1 Attachment

Type: Discussion
Status: Resolved
ArchiCentre
View Replies:
hissy replied on at Permalink Reply
hissy
Sorry for late response...and thank you for your review.
Please try to use "\n" instead of "<br />".

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.