Jump to content

Do a Line Break Even with the Pre Tag ?


Glese

Recommended Posts

I am intending to do a line-break in a specific division and I do manage it, though in the second division I am using pre tags, because I need the submitted data to be as is.

 

Here is an example:

 

        <!--  The Contribution Description -->
        <tr>
            <td colspan="3"><div class="break_word"><p><?php echo $contribution_description; ?></p></div></td>
        </tr>
        
        <!--  The Separation Line -->
        <tr>
            <td colspan="3"></td>
        </tr>
        
        <!--  The Contribution -->
        <tr>
            <td colspan="3"><div class="break_word"><pre><?php echo $contribution; ?></pre></div></td>
        </tr>
        
</table>

 

I am wondering, how can I manage to still have the line-break working as in the first division, and still keep the pre tags intact?

Link to comment
https://forums.phpfreaks.com/topic/252914-do-a-line-break-even-with-the-pre-tag/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.