Search This Blog

Thursday, May 6, 2010

Preparing Texts for Input Field

function prepareInput ( $text )
{
    $text = htmlentities( $text, ENT_COMPAT, 'UTF-8' );

    return $text;
}

No comments:

Post a Comment