Title: Error with hyperlink
Last modified: August 22, 2016

---

# Error with hyperlink

 *  Resolved [frogweb](https://wordpress.org/support/users/frogweb/)
 * (@frogweb)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/error-with-hyperlink/)
 * I found that on my site this plugin trim all the links inside href attribute (
   on rss2 feed)
 * Example:
 * `<a href="">my link</a>`
 * without plugin `<a href="http://www.mylink.com">my link</a>`
 * [https://wordpress.org/plugins/rss-image-feed/](https://wordpress.org/plugins/rss-image-feed/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [tepelstreel](https://wordpress.org/support/users/tepelstreel/)
 * (@tepelstreel)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/error-with-hyperlink/#post-5434133)
 * I will have a look at that.
 * Never noticed it while testing.
 *  [deconweb](https://wordpress.org/support/users/deconweb/)
 * (@deconweb)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-with-hyperlink/#post-5434450)
 * I found the solution, but not why.
 * In rss-image-feed/class-lib//A5_ExcerptClass.php line 50:
 * `$text = preg_replace('/\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|$!:,.;]*[
   A-Z0-9+&@#\/%=~_|$]/i', '', $text);`
 * Commenting this line works OK. What is its function?
 *  Plugin Author [tepelstreel](https://wordpress.org/support/users/tepelstreel/)
 * (@tepelstreel)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-with-hyperlink/#post-5434453)
 * That line is supposed to get rid of the hyperlinks in deed. Obviously it only
   does half of the job.
 * It is there, because the returned text is supposed to be an excerpt and without
   anything in it.
 * The plugin should leave the text as it is, if you turn off the ‘force excerpt’
   option in the settings.
 *  Plugin Author [tepelstreel](https://wordpress.org/support/users/tepelstreel/)
 * (@tepelstreel)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-with-hyperlink/#post-5434462)
 * With the new update all should be working fine.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error with hyperlink’ is closed to new replies.

 * ![](https://ps.w.org/rss-image-feed/assets/icon-128x128.png?rev=1034510)
 * [RSS Image Feed](https://wordpress.org/plugins/rss-image-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rss-image-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rss-image-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/rss-image-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rss-image-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rss-image-feed/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [tepelstreel](https://wordpress.org/support/users/tepelstreel/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/error-with-hyperlink/#post-5434462)
 * Status: resolved