X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FPresenter%2FText.pm;h=7d56d940be03243c36facae0759dee93a1f50401;hb=0d12df6dc721dcdbc81ca8db667cd644393bc5fc;hp=2943a5aa2b8c5b254acaf512693839a9d80021a9;hpb=a30abed7783a6d000bb212562281f1ce50016ac2;p=kivitendo-erp.git 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