a minor thing really ... when there are special characters within parameters passed to a shortcode they aren't interpreted - but displayed as an error - a ? in a diamond. Is there a way round this?
My shortcode is:
My shortcode is:
- Code: Select all
$FUNCS->register_shortcode( 'tooltipB', 'tooltipB_handler' );
function tooltipB_handler( $params, $content=null ){
global $FUNCS;
extract( $FUNCS->get_named_vars(array(
'trigger' => '',
'popup' => ''
), $params) );
return '<button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="'.$popup.'">'.$trigger.'</button>';
}