Results 1 to 13 of 13
Thread: html
Hybrid View
-
20th February 2013 20:48 #1Registered User
Join Date: Apr:2007
Location: Bulgaria
Posts: 301
html
, : <script>alert("ok");</script> , "", "". <img> 1 - . , , :
, . . : <script>alert("ok");</script> "" ( , ). , ?PHP Code:function cleanup_text ($value = "", $preserve="", $allowed_tags="")
{
if (empty($preserve))
{
$value = strip_tags($value, $allowed_tags);
}
$value = htmlspecialchars($value);
return $value;
}
function safe_query ($query = "")
{
if (empty($query)) { return FALSE; }
if (QUERY_DEBUG == "Off")
{
$result = mysql_query($query) or die ("Query failed: please contact the the Webmaster");
}
else
{
$result = mysql_query($query) or die ("ack! query failed: "
."<li>errorno=".mysql_errno()
."<li>error=".mysql_error()
."<li>query=".$query
);
}
return $result;
}
-
21st February 2013 10:06 #2Registered User
Join Date: Jul:2005
Location: Sofiq
Posts: 2,798
-
21st February 2013 12:18 #3Registered User
Join Date: Apr:2007
Location: Bulgaria
Posts: 301
-
21st February 2013 14:24 #4Mire-x
Join Date: Apr:2005
Location: Sofia
Posts: 763
.Code:$comment = strip_tags($comment, '<b><i><u><strong><em>');
(10b) || !(10b)
-
21st February 2013 14:54 #5
BBcodes ( ), markitUp ( ) - [....]text[/....] .. , (htmlspecialchars() ), , . .. , .
: [b ][/b ] => <strong></strong> .
- .
-
21st February 2013 15:36 #6Mire-x
Join Date: Apr:2005
Location: Sofia
Posts: 763
, PHP strip_tags(), , , .. <strong onmouseover="..."></strong> onmouseover . tedych , . "[b]" - "<strong>"...
(10b) || !(10b)
-
22nd February 2013 00:19 #7Registered User
Join Date: Apr:2007
Location: Bulgaria
Posts: 301
- - http://www.sceditor.com/. : $text = strip_tags(addslashes($_POST['text']),'<b><em><i><strong><a><font><br>');
. :[s] , . ,Code:[s]cfsvsvdvd[/s] vasdvdv avasv avasv avasv :(
-
25th February 2013 20:42 #8




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in