Is it possible to format text with php as in whenever php sees ~ in text it would put <br>.
I am not sure if it is possible as i am new to php.
ashneet 0 Junior Poster
Recommended Answers
Jump to PostYou might be better to save the actual html to the database, or bbcode. There are plenty of scripts to help automate that. Let us know if you need any pointers.
Sarah
Jump to Postsomething like this: http://www.isolated-designs.net/core/projects/27/php-bbcode-functions
but it all depends on where the text is coming from and where it's going to.
The other way to get nicely formatted text is to use an htmlarea type of tool. There is a site acting as a directory of …
All 8 Replies

Electrohead
Troy commented: Post does not apply to the question. +0
ashneet 0 Junior Poster
Troy 35 Posting Whiz
sarahk 0 Junior Poster
ashneet 0 Junior Poster
sarahk 0 Junior Poster
ashneet 0 Junior Poster

Electrohead
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.