Skip to content
This repository has been archived by the owner on May 3, 2021. It is now read-only.

Commit

Permalink
Fix escape_string for IGTV captions
Browse files Browse the repository at this point in the history
  • Loading branch information
jsanahuja committed Nov 15, 2020
1 parent 4a5f593 commit 6f4ccbb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/InstagramFeed.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@jsanahuja/instagramfeed",
"description": "Instagram Feed without access token. Not using the Instagram API",
"homepage": "https://github.com/jsanahuja/InstagramFeed",
"version": "1.5.0",
"version": "1.5.1",
"keywords": [
"instagram",
"feed",
Expand Down
2 changes: 1 addition & 1 deletion src/InstagramFeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
html += "<div class='instagram_igtv'>";
for (var i = 0; i < max; i++) {
var url = "https://www.instagram.com/p/" + igtv[i].node.shortcode,
caption = this.parse_caption(igtv[i], data);
caption = escape_string(this.parse_caption(igtv[i], data));

html += "<a href='" + url + (this.options.display_captions? "' data-caption='" + caption : "") + "' rel='noopener' target='_blank'" + styles.gallery_image_link + ">";
html += "<img" + (this.options.lazy_load ? " loading='lazy'" : '') + " src='" + igtv[i].node.thumbnail_src + "' alt='" + caption + "'" + styles.gallery_image + " />";
Expand Down

0 comments on commit 6f4ccbb

Please sign in to comment.