Rogue Spaces
-
Got a call that shortcodes within su_spoiler were not rendering.
After some digging, ran across this: https://stackoverflow.com/questions/6275380/does-html-entity-decode-replaces-nbsp-also-if-not-how-to-replace-it
In shortcodes-ultimate/inc/core/shortcodes.php on line 90, I’d like to propose this change:
do_action( 'su/shortcode/spoiler', $atts ); $content = str_replace("\xC2\xA0", ' ', $content); // Fix by senica return '<div class="su-spoiler su-spoiler-style-' . $atts['style'] . ' su-spoiler-icon-' . $atts['icon'] . su_ecssc( $atts ) . '"' . $atts['anchor'] . '><div class="su-spoiler-title"><span class="su-spoiler-icon"></span>' . su_scattr( $atts['title'] ) . '</div><div class="su-spoiler-content su-clearfix" style="display:none">' . su_do_shortcode( $content, 's' ) . '</div></div>'; }
- The topic ‘Rogue Spaces’ is closed to new replies.