-
-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Milestone
Description
I created the following shortcode:
[tab title="I am the titel"]I'm the content[/tab]
The plugins tries to escape the quotation marks like this:
[tab title=\"I am the titel\"]I'm the content[/tab]
But it even renders the backslashes in the wysiwyg-editor and in the text-editor.
My shortcode than fails, because it can't find the title correctly and the fallback title is used.
function add_tab( $atts , $content = null ) {
// Attributes
extract( shortcode_atts(
array(
'title' => 'Tab',
), $atts )
);
$markup = '<div class="tabheadline">'.$title.'</div><div class="tabbody">'.apply_filters( 'box_content', $content ).'</div>';
return $markup;
}
add_shortcode( 'tab', 'add_tab' );
Metadata
Metadata
Assignees
Labels
No labels