Get paragraph from text field
Moderator: General Moderators
Get paragraph from text field
I want to set up a text field that when submitted is parsed into paragraphs to be written to html code. I can't think of how to do this. Does anyone have any ideas? If more detail is needed, please let me know. Thanks.
Re: Get paragraph from text field
Moved to PHP - Code.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: Get paragraph from text field
Or if you are happy with <br> or <br /> then you can use nl2br(). This will convert textarea line breaks (user hits enter) to html <br> or <br /> - depending if you are coding xhtml transitional or strict.