Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Javascript Dataset Tutorial and How to Encode-Decode HTML

Dave Gray via YouTube

Overview

Coursera Spring Sale
40% Off Coursera Plus Annual!
Grab it
Learn how to use JavaScript's dataset property to store and retrieve hidden data in HTML elements without displaying it in the browser. Explore the controversy surrounding the Missouri governor's attempt to prosecute a reporter for viewing HTML source code. Discover techniques for encoding and decoding HTML, including creating a custom decoding function and using the 'he' package for easier implementation. Gain insights into the practical applications and potential legal implications of working with hidden data in web development.

Syllabus

Intro
Welcome
The Backstory: Illegal Source Code in Missouri?!
Why and how to store hidden data in HTML elements
How to retrieve data from a dataset with Javascript
Can we really "decode the HTML"?
Creating a decode the HTML function
An Easier Way: the he package

Taught by

Dave Gray

Reviews

Start your review of Javascript Dataset Tutorial and How to Encode-Decode HTML

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.