Just as the function nl2br() , is there any function to handle the conversion of tab to html counterpart? (Or performs both).