Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove <br /> from textarea after load from database?

Tags:

sql

php

enter image description here

I am getting <br /> for every newline in textarea after I load the values from the database

I try to use these but it does not change anything

nl2br($house_address);

Any tips?

like image 512
mistysnake Avatar asked Jan 22 '26 09:01

mistysnake


1 Answers

Use strip_tags:

echo strip_tags($house_address);
like image 61
sjagr Avatar answered Jan 23 '26 22:01

sjagr