• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Title error phpvibe : Strip_tags

Started by MacKen,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


MacKenTopic starter

Quote from: MacKen on
http://www.videoscriptdemo.com/video/7358/-lt-p-style-quot-text-align-center-quot-gt-paragraph-lt-p-gt-lt-strong-gt-bold-lt-strong-gt-lt-br-gt-lt-span-style-quot-color-red-quot-gt-red-lt-span-gt-lt-h1-gt-header-lt-h1-gt-lt-script-type-quot-text-javascript-quot-src-quot-zend-mvc-public-templates-webadmin-system-js-ddacc/


Demo:




Error file fuctions_html.php

function antixss_light($text) {
//Remove external scripts
$search = array(
    '@<script[^>]*?>.*?</script>@si',   // Strip out javascript
    '@<[\/\!]*?[^<>]*?>@si',       // Strip out HTML tags 
    '@<style[^>]*?>.*?</style>@siU',    // Strip style tags properly
    '@<![\s\S]*?--[ \t\n\r]*>@'         // Strip multi-line comments
  );
$tx_output = preg_replace($search, '', $text);
//Deep remove the rest
$injections = array('<script','iframe','<object','applet','<embed','onblur','onchange','onclick','ondblclick','onfocus','onkeydown','onkeypress','onkeyup','onload','onmousedown','onmousemove','onmouseout','onmouseover','onmouseup','onreset','onselect','onsubmit','onunload', '<src', 'document.body.innerHTML', 'document.body', 'document.title','<!--','innerHTML');
$output  = strip_tags($tx_output, '<ul><ol><li><em><pre><code><blockquote><cite><br><b><strong><p><i>');
$output  = str_replace($injections, '', $tx_output);
return $output;
}


Not support
  •  

MacKenTopic starter

Re: Title, Descriptions,Content,Comment  >>>>> error phpvibe : Strip_tags
  •  

Similar topics (7)