Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip html within shortcode #66

Open
basdog22 opened this issue Dec 19, 2020 · 2 comments
Open

Strip html within shortcode #66

basdog22 opened this issue Dec 19, 2020 · 2 comments

Comments

@basdog22
Copy link

Hello,
I am doing this:

[tabs]
[tab]something[/tab]
[tab]something[/tab]
[tab]something[/tab]
[/tabs]

but this generates this when the input was done through a WYSIWYG:

<p>[tabs]</p>
<p>[tab]something[/tab]</p>
<p>[tab]something[/tab]</p>
<p>[tab]something[/tab]</p>
<p>[/tabs]</p>

And the shortcode will finally generate something like this:

<p><ul id="tabs16084068915098" class="nav nav-tabs "></p>
<p><li class="nav-item ">
                    <a class="nav-link " id="16084068912629" data-toggle="tab" role="tab" href="#tab16084068912629">
                    Tab1
                    </a>
                </li>
                <div id="tab16084068912629" class="tab ">Tab1 content</div></p>
<p></ul></p>

producing extra

elements and making a non HTML valid list

How do we handle this situation?

@webwizo
Copy link
Owner

webwizo commented Dec 20, 2020 via email

@basdog22
Copy link
Author

basdog22 commented Dec 20, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants