So, let's assume there is an item named Molot's e-book reader (close enough to real life facts). And let's assume there is a form displaying all my possession.
This seems unsafe:
<?php
'#default_value'=> $item->name,
?>
But this works in a wrong way:
<?php
'#default_value'=> check_plain($item->name),
?>
So what is the clean Drupal way to sanitize form's default values?