The project I'm working on now has, at the box office, the ability to attach an embedded YouTube video to an ad.
It causes a headache:
My initial plan was to take the built-in html that the user provides from YouTube, and split the videoID, and store only that, rejecting everything that does not match a specific template so that there are no dodgy cases.
Unfortunately, ASP.net validation catches html before it is sent back to me for processing, is there a way, other than disabling validation, to get around this?
I can handle unsafe html myself, and there are too many other controls on the page to justify canceling the check.
source
share