-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single-project view on the archive page #125
Comments
This encompasses:
|
Approved wireframes: Note: field display should match spreadsheet, not verbatim from wireframes. These are only wireframes. |
One thing we might want to be concerned about is the YouTube video URL's. If we accept the basic YouTube video URL, we'll need to do something like this
to grab the video id and create an embed url with it in order to display it inside of an iframe. A way around this could be to ask users to input only the embed video URL, but I'm not sure if that's a reasonable ask to expect them to know how to grab that. |
The scraper is returning whole iframe tags for YouTube, PBS, and Vimeo, by the way. |
Hm. So then would it be reasonable to just ask the submitter to place the entire embed code in the video field? |
It would be easy, but I don't want to recommend it, because it enables persistent XSS if the person is pasting anything other than an iframe tag. We can do things with KSES to strip out not-iframes. But for anything other than legacy scraped content, I think we should ask for the video URL and then use WordPress' Oembed functions to fetch the HTML from a source that WordPress trusts. |
@benlk So how are you picturing how we can safely display it on the frontend if some posts have the entire iframe but some have just the url? Especially since Vimeo and Youtube, etc. all have different embed URLs |
I'd split the handling for legacy scraped HTML and new forms. Scraped embed HTMLScrape results are stored in post meta in legacy-specific field, and are output, unescaped, in the relevant locaiton New featured videosOne of these two options would work:
|
Couldn't we just pass it through |
If it works, yeah, let's do that. Since it requires HTTP transactions, I was/am worried that that might take too long to run when the post is saving, and would have to be done asynchronously. |
No description provided.
The text was updated successfully, but these errors were encountered: