question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to disable <p></p> on new line?

See original GitHub issue

Question on the Title.

When i try to add custom shortcodes for replacement, for sample:

appName = Test
appVersion = 1.0.0

The editor wraps each Line an <p>$LineContent</p>, the result is: <p>appName = Test</p><p>appVersion = 1.0.0</p>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
cboudreauxcommented, Sep 5, 2017

I installed Summernote on Laravel and it is improperly nesting

tags, so the stored content looks something like the text below. Then, when I try to parse it for display, using php’s loadHTML function, the loadHTML function throws an error because of the invalid nesting of

tags.

<p>3cokn3cr<p>rcpinrc</p><p>'3r</p><p>3rvinvb3nrv</p><p>'3t</p></p>

Is there any way to either (1) get Summernote to apply valid p-tag closures, or (2) remove all closing p-tags, or (3) disable the automatic p-tags entirely?

I know that people have been asking for an option to remove automatic p-tags, for years, so I’d be satisfied if I could just get Summernote to produce valid HTML.

0reactions
MartinConde90commented, Jun 22, 2022

I installed Summernote on Laravel and it is improperly nesting

tags, so the stored content looks something like the text below. Then, when I try to parse it for display, using php’s loadHTML function, the loadHTML function throws an error because of the invalid nesting of

tags.

<p>3cokn3cr<p>rcpinrc</p><p>'3r</p><p>3rvinvb3nrv</p><p>'3t</p></p>

Is there any way to either (1) get Summernote to apply valid p-tag closures, or (2) remove all closing p-tags, or (3) disable the automatic p-tags entirely?

I know that people have been asking for an option to remove automatic p-tags, for years, so I’d be satisfied if I could just get Summernote to produce valid HTML.

mmm maybe using strip_tags()

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Prevent Line Breaks Using CSS - DigitalOcean
In this tutorial prevent line breaks using CSS's white-space property. ... First, create and open a new file called main.css using nano or ......
Read more >
How to disable inserting new line in multiline TextInput when ...
Just add this to TextInput -> blurOnSubmit={true}. For example: <TextInput multiline={true} numberOfLines={1} blurOnSubmit={true} />.
Read more >
Account deletion - LINE Help
1. Tap the Home tab > Settings > Account. · 2. Tap Delete account at the bottom of the screen > Next. ·...
Read more >
Create or remove a hanging indent - Microsoft Support
Click the Home tab, and then click the Paragraph dialog box launcher. In the Paragraph group, click the launcher button at the bottom...
Read more >
eslint-disable-next-line react-hooks/exhaustive-deps #11038
Hello Community. I've been working on a simple grocery store app and suddenly had some issues with eslintreact-hooks/exhaustive-deps .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found