ahmadfaizalbh / ahmadfaizalbh/django-oembed

Doesn't always resolve code in HTML

Đang mở
#18 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
auto-migrated Priority-Medium Type-Defect
Ngôn ngữ chính
Python
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.