Embedded YouTube videos stripped out

glass.dimly - June 19, 2008 - 20:05
Project:HTML Purifier
Version:5.x-1.3
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active (needs more info)
Description

So here's something that I can't figure out. I have two filters: one a legacy filter from pre-html purifier days and one for now. The only difference between the two (they are configured exactly the same) is that one uses Drupal's built in line break converter. Both are configured to allow Youtube videos and allow external content.

Here's the weird part: the filter that doesn't use Drupal's built in Line Break Converter strips out YouTube videos. So using Drupal's Line Break Converter with HTML Purifier preserves YouTube videos but without it YouTube videos are stripped out.

I don't know if this is really a bug for HTML Purifier but I wanted to document this behavior for other users, and maybe it is a bug.

Thanks,
jmjohn

#1

ezyang - June 19, 2008 - 20:10

Hi jmjohn,

If you're not too averse to a little debugging, I'd appreciate it if you posted the input data, the data after the line break converter performs it's filtering, and the data right before HTML Purifier filters it? (or maybe the other way around, if you've ordered them the other way).

Cheers,
Edward

#2

ezyang - July 5, 2008 - 03:38
Status:active» active (needs more info)

Marking needs more info.

 
 

Drupal is a registered trademark of Dries Buytaert.