-
Notifications
You must be signed in to change notification settings - Fork 49
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
Comments
WYSIWYG always generates patagraph tags when add new lines, if you do SHIFT+ENTER for new line, it might not use Paragraph tag.
Also, if we follow WordPress for short tas, it never use lines for nested tags, always use short tags in one line.
```
[tabs][tab]something[/tab] [tab]something[/tab] [tab]something[/tab][/tabs]
```
Can you please verify?
Thanks,
|
It might not generate paragraphs but it will generate br. It is still not
valid html. Not to mention that all users use enter and not shift enter.
I tried some str replace but no luck.
Yeah it's ok if we try to use it in one line but i want to do something like this:
[tabs][tab title="This is the tab title"]This it the tab content which might include html[/tab][tab title="This is the tab title"]This it the tab content which might include html[/tab][tab title="This is the tab title"]This it the tab content which might include html[/tab][tab title="This is the tab title"]This it the tab content which might include html[/tab][/tabs]
So, you see it gets very big with just 4 tabs.
…On Sun, Dec 20, 2020, 10:31 Asif Iqbal ***@***.***> wrote:
WYSIWYG always generates patagraph tags when add new lines, if you do
SHIFT+ENTER for new line, it might not use Paragraph tag.
Can you please verify?
Thanks,
Get Outlook for Android<https://aka.ms/ghei36>
________________________________
From: Vasilis Kerasiotis ***@***.***>
Sent: Sunday, December 20, 2020 12:44:15 AM
To: webwizo/laravel-shortcodes ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [webwizo/laravel-shortcodes] Strip html within shortcode (#66)
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?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<
#66>, or unsubscribe<
https://github.com/notifications/unsubscribe-auth/AAMFEYKFSP2BPQGGAB2ARRTSVT7A7ANCNFSM4VCQOVFQ
>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#66 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABAJT3FYTTRM5HW3CS2MJ3SVWY43ANCNFSM4VCQOVFQ>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I am doing this:
but this generates this when the input was done through a WYSIWYG:
And the shortcode will finally generate something like this:
producing extra
elements and making a non HTML valid list
How do we handle this situation?
The text was updated successfully, but these errors were encountered: