#!/usr/bin/env perl use strict; use warnings; use Test::More tests => 4; use MarkdownParser; my $parser = MarkdownParser->new(); is( $parser->parse("Text with "), "

Text with <tag>

\n", "HTML tags escaped" ); is( $parser->parse("Text with & symbol"), "

Text with & symbol

\n", "Ampersand escaped" ); is( $parser->parse('Text with "quotes"'), "

Text with "quotes"

\n", "Quotes escaped" ); is( $parser->parse("Text with 'apostrophe'"), "

Text with 'apostrophe'

\n", "Apostrophe escaped" );