laravel-shortcodes icon indicating copy to clipboard operation
laravel-shortcodes copied to clipboard

Nested same name tag shortcodes

Open whendy opened this issue 4 years ago • 0 comments

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.

whendy avatar Aug 30 '20 10:08 whendy