diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-08-01 16:17:34 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-08-01 16:17:34 -0500 |
| commit | 7e217fd0cbec8f60a8e312a5dd609ee755349d30 (patch) | |
| tree | 4ad3e11950d908d52137edcd27a8a9d4fe10a3db | |
| parent | 25bf44d7adb6784cca1990112a2f4f35bf00a2f3 (diff) | |
| download | invidious-7e217fd0cbec8f60a8e312a5dd609ee755349d30.tar.gz invidious-7e217fd0cbec8f60a8e312a5dd609ee755349d30.tar.bz2 invidious-7e217fd0cbec8f60a8e312a5dd609ee755349d30.zip | |
Use 'dump_unquoted' for share title
| -rw-r--r-- | src/invidious/views/embed.ecr | 2 | ||||
| -rw-r--r-- | src/invidious/views/watch.ecr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious/views/embed.ecr b/src/invidious/views/embed.ecr index 315d06af..669fc864 100644 --- a/src/invidious/views/embed.ecr +++ b/src/invidious/views/embed.ecr @@ -82,7 +82,7 @@ var shareOptions = { socials: ["fb", "tw", "reddit", "mail"], url: "<%= host_url %>/<%= video.id %>?<%= host_params %>", - title: "<%= HTML.escape(video.title) %>", + title: "<%= video.title.dump_unquoted %>", description: "<%= description %>", image: '<%= thumbnail %>', embedCode: `<iframe id='ivplayer' type='text/html' width='640' height='360' diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index 79a4c468..f135235b 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -92,7 +92,7 @@ var shareOptions = { socials: ["fb", "tw", "reddit", "mail"], url: "<%= host_url %>/<%= video.id %>?<%= host_params %>", - title: "<%= HTML.escape(video.title) %>", + title: "<%= video.title.dump_unquoted %>", description: "<%= description %>", image: '<%= thumbnail %>', embedCode: `<iframe id='ivplayer' type='text/html' width='640' height='360' |
