Title: UI: Displaying sample shortcode not complete
Last modified: March 7, 2019

---

# UI: Displaying sample shortcode not complete

 *  Resolved [bkjproductions](https://wordpress.org/support/users/bkjproductions/)
 * (@bkjproductions)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/ui-displaying-sample-shortcode-not-complete/)
 * When you create a shortcode, on the right at the top, it shows you what the shortcode
   will be. However, for me, at least, it is not showing the ending quote nor the
   closing square bracket. (See sample screenshot.)
 * Perhaps the **input class sc_copy_field **should use single quotes to wrap the
   value, since double quotes are used?
 * Line 445 of sc-admin.php, I see that esc_attr() is being used but it may be simpler
   to just use single quotes for the value.
 * `<input type="text" value=' . "'". esc_attr( self::get_shortcode( $sc_name ) )."'".'...`
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fui-displaying-sample-shortcode-not-complete%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/ui-displaying-sample-shortcode-not-complete/#post-11304817)
 * Hi [@bkjproductions](https://wordpress.org/support/users/bkjproductions/),
 * Sorry for the late reply. Yes the copy field box is small so the text is seen
   half.
 * But the full shortcode can be copied.
    Just click the box to select the text 
   and right click copy it.
 * Regarding esc_attr() is the recommended way to set any value for a HTML attribute.

Viewing 1 replies (of 1 total)

The topic ‘UI: Displaying sample shortcode not complete’ is closed to new replies.

 * ![](https://ps.w.org/shortcoder/assets/icon.svg?rev=2222236)
 * [Shortcoder — Create Shortcodes for Anything](https://wordpress.org/plugins/shortcoder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcoder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcoder/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcoder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcoder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcoder/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [vaakash](https://wordpress.org/support/users/vaakash/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/ui-displaying-sample-shortcode-not-complete/#post-11304817)
 * Status: resolved