mpratt / Embera

A Oembed consumer library, that gives you information about urls. It helps you replace urls to youtube or vimeo for example, with their html embed code. It has advanced features like offline support, responsive embeds and caching support.
MIT License
339 stars 59 forks source link

Fixed issue #27 #28

Closed assembledadam closed 8 years ago

assembledadam commented 8 years ago

Fixed replacement issue. Escaped the regex.

mpratt commented 8 years ago

Hi assembledadam,

As stated on Issue #27 , Im going to use strtr. Thanks for the report, and pull request!