Page 1 of 1

can i remove html tags using php

Posted: Wed Apr 23, 2008 12:01 pm
by itsmani1
Hi

I want to remove html tangs of a string using php.

is there any function that can help me?

like

$str='<b>Hello</b> Mannan';

I want to make it
$str = 'Hello Mannan';

thank ya all

Re: can i remove html tags using php

Posted: Wed Apr 23, 2008 12:05 pm
by mattcooper
Use this:

Code: Select all

<?php $str = strip_tags('<b>Hello</b> Mannan'); ?>
Easy :)