The project I am currently working on has, in the checkout, an option to attach an embedded YouTube video to an advert.
This is causing a headache:
My original plan was to take the embed html that the user provides from YouTube and split out the videoID, and store only that, rejecting anything that does not fit a certain pattern, to ensure there's no dodgy business.
Unfortunately, the ASP.net validation is catching the html before it gets sent back to me for processing, is there any way other than turning off validation to get around this?
I can deal with the unsecure html myself, and there are too many other controls on the page to justify turning off validation.
Cheers, Ed