Escape special characters in article description for JSON compatibility

This commit is contained in:
2025-03-29 09:40:50 +01:00
parent 2d7bd25d1f
commit f529229d76

View File

@@ -228,7 +228,7 @@
"@id": "<?php echo($baseUrl . $_SERVER['REQUEST_URI']); ?>"
},
"headline": "<?= $this -> article["language"]["title"]; ?>",
"description": "<?= $this -> article["language"]["entry"]; ?>",
"description": "<?= addslashes( $this -> article["language"]["entry"] ); ?>",
"image": "<?php echo($baseUrl . $this -> article['language']['main_image']); ?>",
"author": {
"@type": "Organization",