How to break long paragraphs using MySQL [duplicate]

Question

What is the easiest way to add a line break in the wordpress post_content, if the paragraphs are too long?

My thoughts are

  • explode the post_content by "nn"
  • get the length of the pieces.
  • If they are too long, count the number of punctuations, divide them through 2
  • add a "nn" after that punctuation.

Did anyone have a script for that?

0
Markus039299 3 months 0 Answers 10 views 0

Leave an answer