ahmadfaizalbh / ahmadfaizalbh/django-oembed

Doesn't always resolve code in HTML

オープン
#18 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
auto-migrated Priority-Medium Type-Defect
主要言語
Python
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。