dcj79
asked on
displaying text with STRIPTAGS
hello
I'm trying to display text stored in mysql using STRIPTAGS, then all the text is displayed on the same line without returns
is it possible to change this?
thanks
I'm trying to display text stored in mysql using STRIPTAGS, then all the text is displayed on the same line without returns
is it possible to change this?
thanks
sidenote: proper xhtml breaks as <br/> with an infinite amount of space between the br and /.
just to clarify
just to clarify
upps...
yeah.. sorry.. I mistype...
thanks..
yeah.. sorry.. I mistype...
thanks..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Use this:
assuming your variable name is: $var
$var = strip_tags($var, '<br>');
or if you are using XHTML, use this:
$var = strip_tags($var,'</br>');