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

Comments

ezyang’s picture

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

ezyang’s picture

Status: Active » Postponed (maintainer needs more info)

Marking needs more info.

ezyang’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Closed due to inactivity.