How to ensure that the original format of HTML is maintained when rendering the content of the HTML page in the PHP program.
For example, I have the following html format tag content
<code><div class="content-show"> <p class="description">$val['desc'];<p> <div class="con"><span>$val['note']</span> | <span>$val['category']</span></div> </div></code>
How to ensure that the original format of HTML is maintained when rendering the content of the HTML page in the PHP program.
For example, I have the following html format tag content
<code><div class="content-show"> <p class="description">$val['desc'];<p> <div class="con"><span>$val['note']</span> | <span>$val['category']</span></div> </div></code>
I don’t know if you are talking about the fixed-term talisman! Output the final character as it is. Reference is as follows
<code>$html = <<<END <div class="content-show"> <p class="description">$val['desc'];<p> <div class="con"><span>$val['note']</span> | <span>$val['category']</span></div> </div> END;</code>