100 posts
  • Has been part of the Envato Community for over 4 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 4 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!

3495 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Located in United States
  • Helps us moderate the forums
+10 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>"; 

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by