{
"@context": "http://schema.org",
"@type": "NewsArticle",
- "mainEntityOfPage": "{$regularCanonicalURL}",
- "headline": "{$articleContent->title}",
+ "mainEntityOfPage": "{@$regularCanonicalURL|encodeJSON}",
+ "headline": "{@$articleContent->title|encodeJSON}",
"datePublished": "{@$article->time|date:'c'}",
"dateModified": "{@$article->time|date:'c'}",
- "description": "{@$articleContent->getFormattedTeaser()}",
+ "description": "{@$articleContent->getFormattedTeaser()|encodeJSON}",
"author": {
"@type": "Person",
- "name": "{$article->username}"
+ "name": "{@$article->username|encodeJSON}"
},
"publisher": {
"@type": "Organization",
"name": "{PAGE_TITLE|language}",
"logo": {
"@type": "ImageObject",
- "url": "{$__wcf->getStyleHandler()->getStyle()->getPageLogo()}",
+ "url": "{@$__wcf->getStyleHandler()->getStyle()->getPageLogo()|encodeJSON}",
"width": {@$__wcf->getStyleHandler()->getStyle()->getVariable('pageLogoWidth')},
"height": {@$__wcf->getStyleHandler()->getStyle()->getVariable('pageLogoHeight')}
}
{if $articleContent->getImage()}
,"image": {
"@type": "ImageObject",
- "url": "{$articleContent->getImage()->getThumbnailLink('large')}",
+ "url": "{@$articleContent->getImage()->getThumbnailLink('large')|encodeJSON}",
"width": {@$articleContent->getImage()->getThumbnailWidth('large')},
"height": {@$articleContent->getImage()->getThumbnailHeight('large')}
}