X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/a30abed7783a6d000bb212562281f1ce50016ac2..53593baa211863fbf66540cf1bcc36c8fb37257f:/SL/Presenter/Text.pm diff --git a/SL/Presenter/Text.pm b/SL/Presenter/Text.pm index 2943a5aa2..7d56d940b 100644 --- a/SL/Presenter/Text.pm +++ b/SL/Presenter/Text.pm @@ -4,6 +4,7 @@ use strict; use SL::Presenter::EscapedText qw(escape); use SL::HTML::Restrict; +use SL::HTML::Util; use Exporter qw(import); our @EXPORT_OK = qw(format_man_days simple_format truncate restricted_html); @@ -52,6 +53,11 @@ sub restricted_html { return $html_cleaner->process($value); } +sub stripped_html { + my ($value) = @_; + return SL::HTML::Util::strip($value); +} + 1; __END__ @@ -103,6 +109,11 @@ are removed. Returns HTML code stripped from unwanted/unsupported content. This is done via the module L. +=item C + +Returns the raw text with all HTML tags and comments stripped. This is +done via L. + =back =head1 BUGS