Jump to content

[SOLVED] Including line breaks


smc

Recommended Posts

You could replace the tabs with a certain number of non=breakable spaces, but you may not like the results.
[code]<?php
$str = str_replace("\t",'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;',$str);
?>[/code]

The bigger question is why are you using the tab characters for formatting?

Ken

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.