Is there a way to get the YouTube filter to leave the dimensions alone that are set when creating content? No matter what size we use, they always default back to 425 x 350. I know this is for security purposes but is there a workaround? I read this: http://htmlpurifier.org/docs/enduser-youtube.html but still can't figure out next steps. Any help would be appreciated...
Comments
Comment #1
ezyang commentedHey superflyman, check out the new %HTML.SafeObject and %Output.FlashCompat configuration options. They'll be on the default view instead of Filter.YouTube next release.
Comment #2
phoang commentedDoesn't work for me.Anyone knows how to solve this.
Comment #3
phoang commentedChanging status to Active.
Comment #4
ezyang commentedaxlrose, I can’t debug your issue if you don’t give me more information. What versions of HTML Purifier and the Drupal module are you using? What are your inputs and outputs?
Comment #5
phoang commentedThank you ezyang , I found my the answer from http://htmlpurifier.org/docs/enduser-youtube.html ,said that cannot change the width and height.
I hope that someone will submit a patch to change the width and height.
Comment #6
ezyang commentedHello axlrose,
You should try using the %HTML.SafeObject and %Output.FlashCompat configuration, which will permit resizing height and width.
Comment #7
phoang commentedI tried but It didn't work.
Comment #8
ezyang commentedHello axlrose,
What input did you try and what did HTML Purifier give back?
Comment #9
phoang commentedI'm trying to embed a youtube video with custom size. For example, 960 x 745 but HTML Purifier give me back the default width and height : 425 x 350 no matter what size I input.
I already tried on a clean install.
Drupal 6.19
HTML Purifier 2.3
HTML Purifier Library : 4.1.1
Here is the code that I input.
Comment #10
ezyang commentedI forgot to add; did you turn *off* the YouTube filter?
Comment #11
phoang commentedIf I turn off the Filter.Youtube, the video doesn't show up.
Can you give me your configurations ?
Comment #12
ezyang commentedDo you have any configuration in HTML.Allowed? (Unlike Filter.YouTube, SafeObject requires object and param to be allowed, as well as all of the attributes.)
Comment #13
phoang commentedNo. I left everything as default. It checked on Null/Disable at HTML.Allowed.
Comment #14
ezyang commentedThis might be this issue: http://htmlpurifier.org/phorum/read.php?2,4794
What happens if you turn on SafeEmbed?
Comment #15
phoang commentedIf I turn on SafeEmbed the youtube videos doesn't show up.
Comment #16
albert9000 commentedWarning: Deprecated in favor of %HTML.SafeObject and %Output.FlashCompat (turn both on to allow YouTube videos and other Flash content).
http://htmlpurifier.org/live/configdoc/plain.html#Filter.YouTube
Also, disable The YouTube filter.
Don't forget to clear the HTML purifier cache.
Comment #17
ezyang commentedWell, I guess we'll all just use iframes now... See #711728: SafeIframe configuration for images, google maps, and videos