I have a form with a textarea whose results are inserted into a mysql database. I\'m using nl2br to preserve the line breaks.
Hy guys, This is given me hard times. I have a simple form, I copy / paste news into my databasefor additional content;
I am having difficulty with displaying HTML it seems. haha, let me explain. I have 1 template file for \"comments\"... and it tells things where to go and such in the html. When Adding, Updating and
I would like to be able to get html-formatted data from mysql, and turn the new lines into <br> or <p> tags.
I\'ve asked this question before but I didn\'t seem to get the right answer.I\'ve got a problem with new lines in text.Javascript and jQuery don\'t like things like this:
I know when saving a textarea you can use the nl2br() or str_replace to change the /n to br tags etc. However what im not sure about how to insert line breaks into a textarea. I cant seem to find much
So on my website you are able to send messages. I use the nl2br() function so if someone presses enter, t开发者_高级运维heir text will have linebreaks. I realized though, if the person typing the text
i have a textarea value which its value derived from a field(nl2br) how to strip off \"< br/>\", so that when i want to edit this field, the \"< br />\" will not be appeared?
I use nl2br when displaying some information that is saved somewhere, but when HTML tags are used I want not to add <br> tags for them.
I\'m having some problems with a \"bb parser\" I\'m coding. Or, well, not with the parser itself, but the nl2br modifying it.