Title: Shortcode Frustration
Last modified: August 31, 2016

---

# Shortcode Frustration

 *  [Artur Bobinski](https://wordpress.org/support/users/kentonwebdesign/)
 * (@kentonwebdesign)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/shortcode-frustration/)
 * Building a custom template for one of clients and I can’t remember how I structured
   my shortcodes so that it doesn’t clean a link within the shortcode. For example;
 *     ```
       return '<h2 class="icon-title" style="background:url("' . esc_attr($iconlink) . '") no-repeat center;">' . esc_attr($title) . '</h2>';
       ```
   
 * but it strips it in html, showing it as;
 *     ```
       http:="" amazonaws.com="" wp-content="" uploads="" 2016="" 03="" image.gif"
       ```
   
 * It’s driving me crazy trying to remember. I’ve tried the esc_url .. still nothing.
 * Thanks in advance.

The topic ‘Shortcode Frustration’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 0 replies
 * 1 participant
 * Last reply from: [Artur Bobinski](https://wordpress.org/support/users/kentonwebdesign/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/shortcode-frustration/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
