HOW TO handle quotes within injected text assigned to Title attribute of a HTML element

While working with the YouTube API, I needed to populate the value of a anchor's title attribute with text generated dynamically from YouTube's JSON API
On inspecting the HTML source code of a rendered page, I noticed that if the title had double quotes it would disturb the double quotes that it is already enclosed within. I used this custom function to fix it

Comments

Popular posts from this blog

Maven Crash Course - Learn Power Query, Power Pivot & DAX in 15 Minutes

"Data Prep & Exploratory Data Analysis" course by Maven Analytics

Oracle Cloud Infrastructure 2024 Generative AI Professional Course & Certification Exam (1Z0-1127-24)