Skip to content

Nested same name tag shortcodes #59

Open
@whendy

Description

@whendy

Hi, i have a problem with nested same name tag shortcode.

Example:

{!! shortcodes('[div class="row"][div class="col-md-6"]Column Left[/div][div class="col-md-6"]Column Right[/div][/div]') !!}

Output:

nested-shortcode

Inspect element:

nested-shortcode-element

Register shortcode:

public function render($content)
    {
        $this->attributes = array_merge($this->attributes, $this->atts);
        return '<div ' . \HTML::attributes($this->atts()). '>'. shortcodes($content) . '</div>';
    }

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions