ahmadfaizalbh / ahmadfaizalbh/django-oembed

Doesn't always resolve code in HTML

Ouverte
#18 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
auto-migrated Priority-Medium Type-Defect
Langage dominant
Python
Étoiles
0
Forks
0
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

```
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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.