here is my string
hello
world
<textarea>hello world</textarea>
how can I convert this string
hello
world
<textarea>hello world</textarea>
in php. Any one help please... I am try htmlspecialchars(); function but that doesn't work perfect.
please read more on php ..Maybe this can help you https://www.w3schools.com/pHp/default.asp
<?php
echo "hello";
echo "</br>";
echo "world";
echo "</br>";
echo "</br>";
echo "<input type = 'textare' value = 'hello world'>";
?>
来源:https://stackoverflow.com/questions/45114200/how-to-convert-new-line-and-html-code-in-htmlspecialchars-in-php