matthew016
asked on
Format text into html
Hi,
I have some texts in my SQL db that I would like to format into Html
E.g.
Hello
world
Must be formatted in
Hello<br>
world
Thank you for any help.
public static function formatInHtml($str) {
[...]
}
I have some texts in my SQL db that I would like to format into Html
E.g.
Hello
world
Must be formatted in
Hello<br>
world
Thank you for any help.
public static function formatInHtml($str) {
[...]
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.