R
R
RuslanSer2020-05-05 13:16:47
WordPress
RuslanSer, 2020-05-05 13:16:47

How to format text output via the_content in wordpress?

When displaying content via the_content , the post content is displayed with the tag . How to remove this tag using WP? WP Version - Version 5.4.1.

<div class="article__content">                
<pre class="wp-block-preformatted">Lorem ipsum dolor sit amet, consectetur adipisicing elit. A ea earum eius exercitationem explicabo facere maxime nesciunt numquam perferendis praesentium quam sequi veritatis, voluptate! Aliquam dolorum ea, enim eos eum facere fugit hic illo in, ipsam itaque laboriosam non officiis perspiciatis quos reiciendis sapiente sit ullam ut vero. Ab dolor modi mollitia odit porro quidem reiciendis repellendus tenetur ut vero. Accusamus accusantium aliquid distinctio dolorum, ipsa omnis optio quibusdam ratione! Adipisci aliquid atque consequuntur deleniti dolorum eius ex exercitationem expedita explicabo fuga fugit hic, ipsam iste libero molestias natus nihil odit quas qui quis sapiente similique suscipit tempora ullam ut, velit, voluptates.
</pre>
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RuslanSer, 2020-05-05
@RuslanSer

I generated this Lorem ipsum text in phpstorm and own tag because I copied it. It was necessary to convert the text into a paragraph in the wordpress text editor and everything was fine

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question