original_string: function format_text($text, $format=FORMAT_MOODLE, $options=NULL, $courseid=NULL) {
          //use some whitespace to indicate where there was some line spacing.
          $text = str_replace(array('</p>', "\n", "\r"), '   ', $text);
          return strip_tags($text);
      }
code: function format_text($text, $format=FORMAT_MOODLE, $options=NULL, $courseid=NULL) {
          //use some whitespace to indicate where there was some line spacing.
          $text = str_replace(array('</p>', "\n", "\r"), '   ', $text);
          return strip_tags($text);
      }
code_tokens: function format_text ( $ text , $ format = FORMAT_MOODLE , $ options = NULL , $ courseid = NULL ) { //use some whitespace to indicate where there was some line spacing. $ text = str_replace ( array ( '</p>' , "\n" , "\r" ) , '   ' , $ text ) ; return strip_tags ( $ text ) ; }
docstring: Given text in a variety of format codings, this function returns
  the text as safe HTML or as plain text dependent on what is appropriate
  for the download format. The default removes all tags.
docstring_tokens: Given text in a variety of format codings this function returns the text as safe HTML or as plain text dependent on what is appropriate for the download format . The default removes all tags .