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
https://forums.phpfreaks.com/topic/147724-solved-help-replacing/
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.