06
Notes
- To encode a string for use in a Twitter share intent use
encodeURI
and the string you want to encode.- Example:
let str = `Here is one line and another` encodeURI(str) // result // "Here%20is%20one%20line%0Aand%20another
- Example:
Links
- Writing Shell Scripts with Modern JavaScript (with John Lindquist): https://www.youtube.com/watch?v=sZ-OHEvevEs