mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
Some `<img>` tags do not have an SRC, if they are rewritten using JS
to have one later. Attempting to access `first_image['src']` on these
will raise an exception, as they have no such attribute.
Only look for images which have a defined `src` attribute on them. We
could instead check if `first_image.has_attr('src')`, but this seems
only likely to produce fewer valid images.
|
||
|---|---|---|
| .. | ||
| parsers | ||
| __init__.py | ||
| oembed.py | ||
| preview.py | ||