Skip to content
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

Nesting <div> inside <p> is invalid HTML #121

Closed
Zequez opened this issue Aug 4, 2014 · 1 comment
Closed

Nesting <div> inside <p> is invalid HTML #121

Zequez opened this issue Aug 4, 2014 · 1 comment

Comments

@Zequez
Copy link

Zequez commented Aug 4, 2014

When you use something like youtube followed by simple_format you get the YouTube <div> nested inside a <p> element. Which is invalid, and at least on Chrome, when you look at the Dev Tools, the <div> is rendered as if outside the <p> tag.

I was thinking 2 alternatives.

  1. Change the wrapper_tag parameter on simple_format
  2. Split the <div> tags, then apply simple_format to each piece separatedly, and the join the <div> tags again.
@dejan
Copy link
Owner

dejan commented Dec 19, 2015

YouTube is no longer a bundled filter.

@dejan dejan closed this as completed Dec 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants