I have a site I am attempting to fine tune some third party code for. I want user profiles to be cleaner and so will need to allow some kind of HTML when users put them together. The code uses the following. $username = $info2['provider_username'];
Strip_string
9
I have a site I am attempting to fine tune some third party code for. I want user profiles to be cleaner and so will need to allow some kind of HTML when users put them together. The code uses the following.
$username = $info2['provider_username'];
$joined = $info2['provider_joined'];
$name = strip_tags(stripslashes(substr($info2['provider_name'],0,200)));
$price = $info2['provider_price'];
$profile = strip_tags(stripslashes(substr($info2['provider_profile'],0,2000)));
$types2 = explode(',', $info2['provider_types']);
$pictype = $info2['provider_pictype'];
I believe the bolded line is what I need to address. How can I modify this to allow a few tags like <BR> and <P>?
$username = $info2['provider_username'];
$joined = $info2['provider_joined'];
$name = strip_tags(stripslashes(substr($info2['provider_name'],0,200)));
$price = $info2['provider_price'];
$profile = strip_tags(stripslashes(substr($info2['provider_profile'],0,2000)));
$types2 = explode(',', $info2['provider_types']);
$pictype = $info2['provider_pictype'];
I believe the bolded line is what I need to address. How can I modify this to allow a few tags like <BR> and <P>?
- wayfarer
- Paul Novak
- [1] reply
- wayfarer
- andreasnrb
- wayfarer
- [1] reply
- Tashi Mortier
- [1] reply
- Paul Novak
Next Topics on Trending Feed
-
9