DiigIT | IT Community
No Profile Image
Welcome Guest
New User? Register | Login

dynamic insert text in web page

By: Shailesh Singh | 05 Sep 2008 1:00 pm

Text displayed on a web page needs to be in html to have formatting, otherwise it is simply displayed as plain text, with all multiple
spaces reduced to a single space and no carriage returns. You need to either store the html in the database (usual if you are storing the whole page), or add html to the text after it has been extracted from the database and before you display it (perhaps if you are assembling a page from multiple small bits of text extracted from the database.

Comments

trim(html_entity_ decode($string) );
By: PHP Guru | 05 Sep 2008

Leave a comment

Enter the text in the image
img
Can't read?
Type the characters you see in the picture below.


Close Move