Minify html output from content sql table
<p>On the admin page, im writing content with the CK editor, and i echo this content on my website.</p>

<pre><code>&lt;div class="content"&gt;&lt;?php echo $content['text']; ?&gt;&lt;/div&gt;
</code></pre>

<p>I attach an image, you can see this content output source code.
<a href="https://i.stack.imgur.com/6I94I.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6I94I.jpg" alt="enter image description here"></a></p>

<p>How can i minify or compress this generated output? I want to get smaller page size, and faster load. </p>

<p>Is there any php function for this, that i can use easy?</p>

<p>I find some on the site, but they dont workd, or they needed php.ini config, and i dont want that.</p>