54
rated 0 times
[
55]
[
1]
/ answers: 1 / hits: 16502
/ 8 Years ago, thu, september 8, 2016, 12:00:00
I've been developing a website using the YouTube A.P.I.
Within the description
tag in the JSON file are line breaks n
I need to convert these tags to HTML format
VideoDescriptions.push(item.snippet.description);
[Example descriptionnPlease click the link, Another example descriptionnMore info]
Edit:
This question is NOT a duplicate of the linked article because:
- It's using the YouTube API to retrieve data
- It's necessary to edit from an array rather than the string (as
described in the article) - The answers in either question could lead to different results and
may not apply
More From » html