Is there a way to allow the php tags with the strip_tags() function ?
i've tried strip_tags($text, '<?>') and strip_tags($text, '<? ?>') but it doesnt work ..

any help would be appreciated thanx ..

php.net

Note: HTML comments and PHP tags are also stripped. This is hardcoded and can not be changed with allowable_tags .

You'll have to create your own function.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.