Jump to content

[SOLVED] Help Replacing <br />


phpretard

Recommended Posts

When the query is sent the code for the <texrarea> is iserted as follows...

 

 

$AdditionalComments=stripslashes($_POST['AdditionalComments']);
$AdditionalComments=htmlentities($AdditionalComments, ENT_QUOTES);
$AdditionalComments=nl2br($AdditionalComments);


The DB TEXT Field contains: 

Angelo&#039;s Test
<br />
<br />
Info after breaks

 

 

 

 

The problem is when I display the <texrarea> for updating it shows  <br />

 

So I suppose the question is how can I display a $row without dispaying the <br />

 

 

Link to comment
Share on other sites

As I understand it, $AdditionalComments=nl2br($AdditionalComments); is run before the information is inserted into the database.

 

I suggest you not to process the text in no way before inserting it into the database but rather process it, before displaying it on your homepage.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.