Criteria:
Safe Tags: b, i, u, a
Escape all characters possible between tags.
Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}What to do? What to do?str );
return htmlentities( $str, ENT_QUOTES );
}
This fails obviously because the remaining tags (b,i,u,a) are escaped into > and <
What to do? What to do?ae]
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}
This fails obviously because the remaining tags (b,i,u,a) are escaped into > and &quote; );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}
This fails obviously because the remaining tags (b,i,u,a) are escaped into > and <
What to do? What to do?c3bebaae]
This fails obviously because the remaining tags (b,i,u,a) are escaped into > and <
What to do? What to do? Tags: b, i, u, a
Escape all characters possible between tags.
Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "e;<b><i><u>&rings in a file which are safe for html viewing.
Criteria:
Safe Tags: b, i, u, a
Escape all characters possible between tags.Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}What to do? What to do?n tags.
Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}$str = between tags.
Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}What to do? What to do?een tags.
Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}What to do? Wha
This fails obviously because the remaining tags (b,i,u,a) are escaped into > and <
What to do? What to do?t;
What to do? What to do?ll characters possible between tags.
Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}What to do? What to do?ing.
Criteria:
Safe Tags: b, i, u, a
Escape all characters possible between tags.
Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}What to do? What to do?on safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>"e; );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}
This fails obviously because the remaining tags (b,i,u,a) are escaped into &p;amp;lt;u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}
This fails obviously because the remaining tags (b,i,u,a) are escaped into > and <
What to do? What to do?" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}
This fails obviously because the remaining tags ( viewing.
Criteria:
Safe Tags: b, i, u, a
Escape all characters possible between tags.
Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES )p;amp;gt;<i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}
This fails obviously because the remaining tags (b,i,u,a) are escaped into > and <
What to do? What to do?aae]
function safeStore ( $str ) {
$str = strip_tags( $str, "e;<b><i><u><a>"e; );
$str = stripslashes( $str )ich are safe for html viewing.
Criteria:
Safe Tags: b, i, u, a
Escape all characters possible between tags.
Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}What to do? What to do?t;b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}
This fails obviously because the remaining tags (b,i,u,a) are escaped into > and <
What to do? What to do?wing.
Criteria:
Safe Tags: b, i, u, a
Escape all characters possible between tags.
Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}What to do? What to do? viewing.
Criteria:
Safe Tags: b, i, u, a
Escape all characters possible between tags.
Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}What to do? What to do?which are safe for html viewing.
Criteria:
Safe Tags: b, i, u, a
Escape all characters possible between tags.
Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}What to do? What to do?
Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "e;<b><i><u><in a file which are safe for html viewing.
Criteria:
Safe Tags: b, i, u, a
Escape all characters possible between tags.Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "e;<b><i><u><a>"e; );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}Criteria:
Safe Tags: b, i, u, a
Escape all characters possible between tags.
Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str b, i, u, a
Escape all characters possible between tags.Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "e;<b><i><u><a>"e; );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}What to do? Wha_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}
This fails obviously because the remaining tags (b,i,u,a) are escaped into > and <
What to do? What to do?rings in a file which are safe for html viewing.
Criteria:
Safe Tags: b, i, u, a
Escape all characters possible between tags.
Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}What to do? What to do?fe Tags: b, i, u, a
Escape all characters possible between tags.
Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}What to do? What to do?rings in a file which are safe for html viewing.
Criteria:
Safe Tags: b, i, u, a
Escape all characters possible between tags.
Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}Escape all characters possible between tags.
Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}
This fails obviously because the remaining tags (b,i,u,a) are escaped into > and <
What to do? What to do?><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}
This fails obviously because the remaining tags (b,i,u,a) are escaped into > and <
What to do? What to do?cause the remaining tags (b,i,u,a) are escaped into > and <
What to do? What to do?ria:
Safe Tags: b, i, u, a
Escape all characters possible between tags.
Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}
[/php:1:cdc3be.Code: Select all
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}What to do? What to do?amp;lt;u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}
This fails obviously because the remaining tags (b,i,u,a) are escaped into > and <
Whap;quote;<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}
This fails obviously because the remaining tags (b,i,u,a) are escaped into > and <
What to do? What to do?shes( $str );
return htmlentities( $str, ENT_QUOTES );
}
This fails obviously because the remaining tags (b,i,u,a) are escaped into > and <
What to do? What to do?$str, "<b><i><u><a>"e; );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}
function safeStore ( $str ) {
$str = strip_tags( $str, "<b><i><u><a>" );
$str = stripslashes( $str );
return htmlentities( $str, ENT_QUOTES );
}
This fails obviously because the remaining tags (b,i,u,a) are escaped into > and <
What to do? What to do?