Skip to content

Commit adad674

Browse files
author
Chris Gårdenberg
committed
fix: Better linebreaks (OGP)
1 parent e0bc773 commit adad674

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

PLUGIN-CHECKSUM

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
82d312d6195530c1a144d23241e437a0
1+
fa6db2546b77aeb493995cdec0dc90b8

content/template/data/ogp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
$description = wp_strip_all_tags(
3838
str_replace(
3939
[ "<br />", "<br>", "</p>" ],
40-
[ "\n", "\n", "</p>\n\n" ],
40+
[ "&#xA;", "&#xA;", "</p>&#xA;&#xA;" ],
4141
! empty( $selected_course['CourseDescriptionShort'] ) ?
4242
$selected_course['CourseDescriptionShort'] :
4343
$selected_course['CourseDescription']

0 commit comments

Comments
 (0)