Jump to content

Restricting Certain Characters From Input


ShoeLace1291

Recommended Posts

did you read the manual? lol... that would help...

 

taken from manual:

$str = "A 'quote' is <b>bold</b>";

// Outputs: A 'quote' is <b>bold</b>
echo htmlentities($str);

// Outputs: A 'quote' is <b>bold</b>
echo htmlentities($str, ENT_QUOTES);
?>

 

basically. it would appear as it as written. so if you were to write a link, it would appear as the html and not as the link. i think that makes sense. lol.

 

the < b > tags would appear as that on the screen. so they wouldnt work in making the text bold.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.