Board Thread:General Discussion/@comment-36961264-20191006152801/@comment-5754239-20191007043245

Guards in the textbox would be as simple as having a regular expression check whether the text could be a valid YouTube ID / URL instead of something else. Most YouTube URLs begin with "youtube.com/watch?v=" or "youtu.be/", and the IDs are always 11 characters (unless they run out of character combinations). "Guards" is not a technical term, just one that popped into my head. The technical term for it would be data validation. Javascript does input validation quite well: https://www.w3schools.com/js/js_validation.asp