Hi all,
I am trying to use StripTags as follows. The purpose is to be able to
embed a Youtube move.

$tags_allowed = array(
                "img" => array("width", "height", "src"),
                "a" => array("href", "title"),
                "em",
                "strong",
                "object" => array("width", "height"),
                "param" => array("name", "value"),
                "embed" => array("src", "type", "wmode", "width", "height"),
        );

$striptags = new Zend_Filter_StripTags($tags_allowed);
$input = $striptags->filter($input);

When I do $input =

<object width="425" height="350"><param name="movie"
value="http://www.youtube.com/v/Oa1guca-gFQ";></param><param
name="wmode" value="transparent"></param><embed
src="http://www.youtube.com/v/Oa1guca-gFQ";
type="application/x-shockwave-flash" wmode="transparent" width="425"
height="350"></embed></object>

I would expect it to return the same code, but it returns something like this:

<object><param><param><embed></object>

I've been trying to figure this out for days, any pointers? Am I
missing something? I can't seem to find the problem...

Thanks,
Peter
                        

--
blog: http://poorbuthappy.com/ease/
work: http://petervandijck.net
US: (+1) 201 467-5511
Belgium: (+32) 03/325 88 70
Skype id: peterkevandijck

Reply via email to