Banner
Home :: Knowledge Base

Why do I get \n in my search results? Why do I get \n in my search results?


These are end of line symbols if you have entered data in a multi-line format.

To display in HTML page, these symbols needs to be replaced with <BR>.

Fix is to replace line:
<td><font face="Arial" size="-1"><? echo $value; ?></font></td>

With a line:
<td><font face="Arial" size="-1"><? echo str_replace("\\n", "<BR>", $value);
?></font></td>
Article is in the following categories:
KB » PHP Code Customization Tips


Email This Article

or close