escapeのお話
Text::Xslateがescapeしてくれるので、それを使います!
その時、html_escapeするだけでは、Text::Xslate::Type::Rawというオブジェクトなので、
unmark_rawして文字列を取り出しましょう。
use Text::Xslate qw/html_escape unmarkraw/; my $escaped = html_escape('<a href="">テスト</a>'); my $escaped_str = unmark_raw($escaped);