diff --git a/bskyweb/templates/profile.html b/bskyweb/templates/profile.html
index bb5e9381a2..8fc7b67ce4 100644
--- a/bskyweb/templates/profile.html
+++ b/bskyweb/templates/profile.html
@@ -56,14 +56,14 @@
{
"@context": "https://schema.org",
"@type": "ProfilePage",
- "dateCreated": "{{ profileView.CreatedAt }}",
+ "dateCreated": "{{ profileView.CreatedAt|escapejs }}",
"mainEntity": {
"@type": "Person",
- "name": "{{ profileView.DisplayName }}",
- "alternateName": "@{{ profileView.Handle }}",
- "identifier": "{{ profileView.Did }}",
- "description": "{{ profileView.Description }}",
- "image": "{{ profileView.Avatar }}",
+ "name": "{{ profileView.DisplayName|escapejs }}",
+ "alternateName": "@{{ profileView.Handle|escapejs }}",
+ "identifier": "{{ profileView.Did|escapejs }}",
+ "description": "{{ profileView.Description|escapejs }}",
+ "image": "{{ profileView.Avatar|escapejs }}",
"interactionStatistic": [
{
"@type": "InteractionCounter",