Hi guys,
I'm starting an admin area for a 'news site' for my uni project and I need at the moment to make a page where a user can type or copy and paste a news story as plain text into a text area on the page so using code I can convert it into basic html and save it as a file.
I need to be able to search through the text in the field, remove any nasty tags and detect where line return or new line characters and replace them with appropriate <p> or </p> tags.
Can anyone help me with this?
After this I will sort out file handling to create a file and save the text there as news stories in my system are displayed by 'including' the file. I should be able to sort that its just this new line p tag thing.
Thanks guys,
beN