ahmadfaizalbh / ahmadfaizalbh/django-oembed
Doesn't always resolve code in HTML
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
```
To reproduce:
1. Put code in your page like so
http://www.youtube.com/watch?v=w2loARnxvx8
2. Use the oembed wrapper template tags as documented in the HowToUseIt
3. Django oembed will not convert the code.
Instead, it will leave the URL unconverted, or in the case of some other links
(such as
http://www.viddler.com/explore/SYSTM/videos/49/ ), it will leave partial p tag
html fragments.
If you look at core.py and dump the results of the re_parts function, you'll
see it's getting some things that
it expects to be URLs to actually have the HTML in them, like so:
http://www.youtube.com/watch?v=w2loARnxvx8
I can work around this by running strip_tags on the part variable around line
134 in core.py, but it seems
this is a hack and would be fixed with a better regex, which is beyond me.
```
Original issue reported on code.google.com by `justin.h...@gmail.com` on 14 May 2010 at 4:03
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.