i wrote code for a weblog system i am making. for my add post page, i don't want to have to add in <p> and </p> in my code all the time, and my friend told me i could use regex to add those in for each paragraph i type in. how can i do this?
Why not just use nl2br(); ?
i want to use p tags, not line breaks.