ritz078 / embed-js

🌻 A lightweight plugin to embed emojis, media, maps, tweets, code and more. ✨
https://codesandbox.io/s/Wp5OlNMn
MIT License
1.27k stars 88 forks source link

HTML correct closing tag brakes the embed parser #238

Closed dsozzi closed 6 years ago

dsozzi commented 7 years ago

If leaving HTML tags inline with the embed URL, the parser won't work.

So this won't work:

<p>https://www.instagram.com/p/BSGXM0DjFc6/?taken-by=barrefaeli</p>

Instead this will:

<p>https://www.instagram.com/p/BSGXM0DjFc6/?taken-by=barrefaeli
    </p>

You can see the issue here:

http://codepen.io/kiwi1342/pen/OpBBZX

ritz078 commented 6 years ago

should be fixed in v5