andr3 (andr3) wrote in php,
andr3
andr3
php

i have some questions

i'm building my own blogging system for my website, and i was interested in having a bit of security when it comes to code in the comments.


  • disallow html code

  • disallow javascript

  • special tags (standard BBcode - [quote][url][img])

  • keep it xhtml1.1 compliant



so, i have achieved the first 3 points, but i was wondering which php functions would you recommend for filtering the comments text?

plus, is there any way to garantee that the document keeps xhtml compliant?


(cross-posted to webdev and php)
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 3 comments