$parser->start( $text1->get( "1.0", "$mw2"))) #should be more like $parser->start( $text1->get( "1.0", $mw2->get() ))