Results 1 to 13 of 13

Thread: html

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: Apr:2007
    Location: Bulgaria
    Posts: 301

    html

    , : <script>alert("ok");</script> , "", "". <img> 1 - . , , :
    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;

    , . . : <script>alert("ok");</script> "" ( , ). , ?

  2. #2
    Registered User
    Join Date: Jul:2005
    Location: Sofiq
    Posts: 2,798

  3. #3
    Registered User
    Join Date: Apr:2007
    Location: Bulgaria
    Posts: 301
    , <strong> <i> / , . , ? B, I, . . .

  4. #4
    Mire-x
    Join Date: Apr:2005
    Location: Sofia
    Posts: 763
    Code:
    $comment = strip_tags($comment, '<b><i><u><strong><em>');
    .
    (10b) || !(10b)

  5. #5
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    BBcodes ( ), markitUp ( ) - [....]text[/....] .. , (htmlspecialchars() ), , . .. , .
    : [b ][/b ] => <strong></strong> .
    - .

  6. #6
    Mire-x
    Join Date: Apr:2005
    Location: Sofia
    Posts: 763
    , PHP strip_tags(), , , .. <strong onmouseover="..."></strong> onmouseover . tedych , . "[b]" - "<strong>"...
    (10b) || !(10b)

  7. #7
    Registered User
    Join Date: Apr:2007
    Location: Bulgaria
    Posts: 301
    Quote Originally Posted by tedych View Post
    BBcodes ( ), markitUp ( ) - [....]text[/....] .. , (htmlspecialchars() ), , . .. , .
    : [b ][/b ] => <strong></strong> .
    - .
    - - http://www.sceditor.com/. : $text = strip_tags(addslashes($_POST['text']),'<b><em><i><strong><a><font><br>');
    . :
    Code:
    [s]cfsvsvdvd[/s] vasdvdv avasv avasv avasv :(
    [s] , . ,

  8. #8
    a.k.a. Bibi Flower's Avatar
    Join Date: Aug:2006
    Location: Sofia, Bulgaria
    Posts: 562
    ckEditor.
    bbCodes, .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |