100 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 100+ items on Envato Market
FreeWeb
says

Hello,

i hope that someone is her who can help me by a little question :)

I made a Textarea in a php document. This works fine, and i write an echo like this:

echo “ ”;

echo “Hello her is themeforest <
br> where are you?”;

echo “ ”;

My Problem is now that the <
br> tag has no effect, its also written in the Textarea.

My Question is, how can i set the textarea so that the <
br> Tag has an effect like in a Html site?

Thank You!!!

58 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 50+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+5 more
DigitalCavalry
says

Try this

echo "<textarea>first line\rsecond line</textarea>"; 
100 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 100+ items on Envato Market
FreeWeb
says

Hello,

thanks for your help! But the \r doesent work, its just written in the textarea too. Its like the html tags are going to ignored in textareas??

It would be really nice if someone can tell me a solution!

Thank You!

3532 posts
  • Became a Top 20 Author of the Month
  • Had an item that was trending
  • Had an item that became a weekly top seller
  • Elite Author: Sold more than $75,000 on Envato Market
+13 more
sevenspark
Moderator
says

Think you may need to use \r\n if you’re on a Windows Server

echo "<textarea>first line\r\nsecond line</textarea>"; 
by
by
by
by
by
by