
|
 |

Converting ASCII line returns to HTML line breaksIf your webpage is displaying text from a database or HTML form where the text may contain carriage returns, your carriage returns won't be displayed in a HTML page. Consequently, all your paragraphs will be merged into a single paragraph. You need to convert all ASCII line breaks into HTML link breaks using the in-built PHP function nl2br():
<?php
$textdata = "here is
a bit of text
to break into separate lines";
echo nl2br( $textdata );
?>
|
Comments
Comment by discount Michael Jordan Shoes on 2010-09-17
Air Jordan Shoes are always so attractive, good quality can ensure the wearer's feet, not only that, the Michael Jordan Shoes has become a fashion, many young people are very fanatical Air Jordan. High price so many people can realize their dreams. Well now, our products directly from third-party products, so we can provide cheap Jordan Basketball Shoes and New Jordan Shoes, high quality, excellent service, come on, give yourself a choice.
We offerAir Jordan 1, Air Jordan 2, Air Jordan 3,Air Jordan 4, Air Jordan 5, Air Jordan 6, Air Jordan 7, Air Jordan 8, Air Jordan 9, Air Jordan 10, Air Jordan 11 and so on!
|
|
|