I'm trying to find a script/function that will take input, either from a text area form field, a text file or a rich text file and spit out formatted html. I know PHP has a built in function that will insert line breaks, but I'm looking for something a bit more sophisticated in terms for formatting.
Anybody know where I can find something like that?
I'm trying to avoid writing something that consists of dozens of string replaces, which is the only way I know to do something like this.
Any help would be massively appreciated.