/wp kses
2 naročnika
2 naročnika
Kako hudica ksesu preprecim da mi stripa tole:
<object height="81" width="100%"> <param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F19667090"></param> <param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F19667090" type="application/x-shockwave-flash" width="100%"></embed> </object> <span><a href="http://soundcloud.com/translunar/test-pilot-free-download">TEST PILOT - Free download!</a> by <a href="http://soundcloud.com/translunar">TRANSLUNAR</a></span>
Kses php: http://pastebin.com/SXP1e7YH
Hvala tistemu, ki pogrunta, mu nakazem za pivo dve :)
3 odgovori
Edit: sm probal dodat tage embed, object, param, samo mislim da je problem ker so se ostale zadeve znotraj teh tagov... Googlam pa ne najdem nic.
$allowedtags = array(
'object' => array(
'height' => array(),
'width' => array(),
),
'param' => array(
'name' => array(),
'value' => array()),
'embed ' => array(
'allowscriptaccess' => array(),
'height' => array(),
'src' => array(),
'type' => array(),
'width' => array(),
),
'a' => array(
'href' => array (),
'title' => array ()),
'abbr' => array(
'title' => array ()),
'acronym' => array(
'title' => array ()),
'b' => array(),
'blockquote' => array(
'cite' => array ()),
// 'br' => array(),
'cite' => array (),
'code' => array(),
'del' => array(
'datetime' => array ()),
// 'dd' => array(),
// 'dl' => array(),
// 'dt' => array(),
'em' => array (), 'i' => array (),
// 'ins' => array('datetime' => array(), 'cite' => array()),
// 'li' => array(),
// 'ol' => array(),
// 'p' => array(),
'q' => array(
'cite' => array ()),
'strike' => array(),
'strong' => array(),
// 'sub' => array(),
// 'sup' => array(),
// 'u' => array(),
// 'ul' => array(),
);