mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 02:46:46 -04:00
Escape XML entities in JSON-LD output
This commit is contained in:
parent
e536b38924
commit
2ca12a5797
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ catch(\Exception $ex){
|
||||||
include(WEB_ROOT . '/404.php');
|
include(WEB_ROOT . '/404.php');
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
?><?= Template::Header(['title' => strip_tags($ebook->TitleWithCreditsHtml), 'ogType' => 'book', 'coverUrl' => $ebook->DistCoverUrl, 'highlight' => 'ebooks', 'description' => 'The Standard Ebooks edition of ' . $ebook->Title . ': ' . $ebook->Description, 'jsonld' => $ebook->GenerateJsonLd()]) ?>
|
?><?= Template::Header(['title' => strip_tags($ebook->TitleWithCreditsHtml), 'ogType' => 'book', 'coverUrl' => $ebook->DistCoverUrl, 'highlight' => 'ebooks', 'description' => 'The Standard Ebooks edition of ' . $ebook->Title . ': ' . $ebook->Description, 'jsonld' => htmlentities($ebook->GenerateJsonLd(), ENT_NOQUOTES)]) ?>
|
||||||
<main>
|
<main>
|
||||||
<article class="ebook">
|
<article class="ebook">
|
||||||
<header>
|
<header>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue