A Reflection on the Last Year in Social Media
One year in social media is like 10 years in the real world. SO. MUCH. HAS. HAPPENED! In August 2020, Instagram launched Reels – its short-form video response to Tik Tok. Weeks ago, Instagram said it’s "); console.log({ stringEnd }) preContent += content.substring(0, stringEnd + 1); content = content.substring(stringEnd + 1); words = content.split(' '); firstThreeWords = words.slice(0, 3).join(' '); } contentP.innerHTML = preContent + content.replace(firstThreeWords, `${firstThreeWords}`); } else { words = content.split(' '); firstThreeWords = words.slice(0, 3).join(' '); if (firstThreeWords.indexOf('<') > -1) { // if the first three words contain a tag, we need to find the first three words that are not part of a tag const tagStart = firstThreeWords.indexOf('<'); firstThreeWords = firstThreeWords.substring(0, tagStart).trim(); } contentP.innerHTML = content.replace(firstThreeWords, `${firstThreeWords}`); console.log({ words, firstThreeWords, contentP: contentP.innerHTML }) } }
Have something to say?