A PHP Function that verify code language

Posted by tymc on Stack Overflow See other posts from Stack Overflow or by tymc
Published on 2011-02-13T14:51:07Z Indexed on 2011/02/13 15:25 UTC
Read the original article Hit count: 180

Filed under:
|
|
|
|

Hi,

I have a form with 2 textareas; the first one allows user to send HTML Code, the second allows to send CSS Code. I have to verify with a PHP function, if the language is correct.

If the language is correct, for security, i have to check that there is not PHP code or SQL Injection or whatever.

What do you think ? Is there a way to do that ? Where can I find this kind of function ?

Is "HTML Purifier" http://htmlpurifier.org/ a good solution ?

© Stack Overflow or respective owner

Related posts about php

Related posts about html