python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
PHP nl2br for text content but make it exclude on javascript content
I need to use nl2br function on page content coming from DB. But <br /> tag added to into javascript content too.
<script type="text/javascript"><br />
let test = "tes...
Serkan
Votes: 0
Answers: 1
How to get line-breaks displayed while input in a textarea?
After several hours of research, I am still stucked and unable to solve my problem which is this one : get displayed the break line (enter button) input by the user in a textarea.
Indeed, I am trying ...
vip4rk
Votes: 0
Answers: 0
Why do I get \r\n stored in the database and how to display it back as a new line?
I am not sure what the safest way is to get the value of a textarea into a MySQL table, hopefully someone can get me on the right track.
Form:
<form class="form-horizontal" id="form_...
Arie
Votes: 0
Answers: 0