Any one know how to convert string value into html format in php? For Example:
$string = "Hello World!!
How are you?"
If I echo $string, it will display like this:
Hello World!!How are you?
Instead of:
Hello World!!
How are you?
Any way php can conver the $string into html format? If I input:
$string = "Hello World!!
How are you?"
Php will convert it to become:
$string = "Hello World!!<br>How are you?"