My HTML code in add form.
<textarea id="aboutme" rows="6"></textarea>
I entered in the textarea :
Hi.
My name is Kevin.
Nice to meet you.
My edit form
<textarea id="aboutme" name="aboutme" rows="6"><?php echo (isset($item["aboutme"])) ? htmlspecialchars($item["aboutme"]) : "" ;?></textarea>
All works fine, except when in my other page, I just want to view. I do :
<span>?php echo htmlspecialchars($item['aboutme'])?></span>
Well, the changeline is removed inside the span
tag. Do I MUST use textarea
tag inside my view page ? I just don't think that others do it with textarea tag. Is there any other tag available just to view with changeline ?