private function getMimeTypeForParser($parser) {
        switch ($parser) {
            case self::PARSER_XML:
                return 'application/xml';
            case self::PARSER_XMLDTD:
                return 'application/xml-dtd';
            case self::PARSER_HTML:
            case self::PARSER_HTML5:
            case self::PARSER_HTML4:
            case self::PARSER_HTML4TR:
                return 'text/html';
        }
    }
private function getMimeTypeForParser($parser) {
        switch ($parser) {
            case self::PARSER_XML:
                return 'application/xml';
            case self::PARSER_XMLDTD:
                return 'application/xml-dtd';
            case self::PARSER_HTML:
            case self::PARSER_HTML5:
            case self::PARSER_HTML4:
            case self::PARSER_HTML4TR:
                return 'text/html';
        }
    }
private function getMimeTypeForParser ( $ parser ) { switch ( $ parser ) { case self :: PARSER_XML : return 'application/xml' ; case self :: PARSER_XMLDTD : return 'application/xml-dtd' ; case self :: PARSER_HTML : case self :: PARSER_HTML5 : case self :: PARSER_HTML4 : case self :: PARSER_HTML4TR : return 'text/html' ; } }
Get the correct mime-type for the given parser

@param  string $parser Parser name
@return string
Get the correct mime - type for the given parser