Problem You want to remove HTML tags from a string, leaving just plain text. Solution The following oft-cited solution is simple but wrong on all but the most trivial HTML: ($plain_text = $html_text) =~ s/<[^>]*>//gs; #WRONG A correct but slower and slightly more complicated way is to use the CPAN modules: use HTML::Parse; use HTML::FormatText; $plain_text = HTML::FormatText->new->format(parse_htm
{{#tags}}- {{label}}
{{/tags}}