jQuery: get url from link in text and wrap it around an image

This is an easy way to get the url off of linked text in a paragraph and then wrap it around an image inside an href tag.

See the Pen jQuery: get url from link in text and assign it to image by Treye Rice (@treyerice) on CodePen.

In Category: Front End Development, Professional

Treye Rice

Howdy, my name is Treye. I am the author of this blog. In my professional life, I design websites and then find the best way to market them in search engines and on social media. I also teach large and small groups about search engine optimization, social media marketing and quick-to-market video production. In my private life, I have an amazing wife and two wonderful children. We live in College Station, Texas. Follow me on Twitter for updates and links to my photos, videos and art.

No comments yet. Be the first.