/**
  * Method to parse input into plain text.
  *
  * @param   string  $input   The raw input.
  * @param   string  $format  The format of the input. [optional]
  *
  * @return  string  The parsed input.
  *
  * @since   2.5
  * @throws  Exception on invalid parser.
  */
 public static function parse($input, $format = 'html')
 {
     // Get a parser for the specified format and parse the input.
     return FinderIndexerParser::getInstance($format)->parse($input);
 }
 /**
  * Tests the getInstance method with a non-existing parser
  *
  * @return  void
  *
  * @since   3.0
  *
  * @expectedException  Exception
  */
 public function testGetInstance_noParser()
 {
     FinderIndexerParser::getInstance('noway');
 }