mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 23:06:37 +00:00
98_help.pm: remove more html tags
git-svn-id: https://svn.fhem.de/fhem/trunk@8133 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fb59a99da6
commit
99086ee987
@ -1,4 +1,4 @@
|
||||
# $Id: 98_help.pm 8063 2015-02-22 10:20:03Z betateilchen $
|
||||
# $Id$
|
||||
#
|
||||
package main;
|
||||
use strict;
|
||||
@ -84,6 +84,12 @@ sub CommandHelp {
|
||||
if( $cl && $cl->{TYPE} eq 'telnet' ) {
|
||||
$output =~ s/<br>/\n/g;
|
||||
$output =~ s/<br\/>/\n/g;
|
||||
$output =~ s/<table>//g;
|
||||
$output =~ s/<\/table>//g;
|
||||
$output =~ s/<t.>//g;
|
||||
$output =~ s/<\/t.>//g;
|
||||
$output =~ s/<h.>//g;
|
||||
$output =~ s/<\/h.>//g;
|
||||
$output =~ s/<a href.*\/a>//g;
|
||||
$output =~ s/<a name.*\/a>//g;
|
||||
$output =~ s/<ul>/\n/g;
|
||||
@ -127,8 +133,8 @@ sub CommandHelp {
|
||||
next if($cl && $cmds{$cmd}{ClientFilter} &&
|
||||
$cl->{TYPE} !~ m/$cmds{$cmd}{ClientFilter}/);
|
||||
my @a = split(",", $cmds{$cmd}{Hlp}, 2);
|
||||
$a[0] =~ s/</</g;
|
||||
$a[0] =~ s/>/>/g;
|
||||
# $a[0] =~ s/</</g;
|
||||
# $a[0] =~ s/>/>/g;
|
||||
$a[1] //= "";
|
||||
$a[1] = " $a[1]";
|
||||
$a[1] =~ s/</</g;
|
||||
@ -138,27 +144,6 @@ sub CommandHelp {
|
||||
|
||||
return $str;
|
||||
|
||||
# my $str = "<html><pre>Possible commands:<br/><br/>" .
|
||||
# "Command Parameter<br/>" .
|
||||
# " Description<br/>" .
|
||||
# "----------------------------------------------------------------------<br/>";
|
||||
#
|
||||
# for my $cmd (sort keys %cmds) {
|
||||
# next if(!$cmds{$cmd}{Hlp});
|
||||
# next if($cl && $cmds{$cmd}{ClientFilter} &&
|
||||
# $cl->{TYPE} !~ m/$cmds{$cmd}{ClientFilter}/);
|
||||
# my @a = split(",", $cmds{$cmd}{Hlp}, 2);
|
||||
# $a[0] =~ s/</</g;
|
||||
# $a[0] =~ s/>/>/g;
|
||||
# $a[1] //= "";
|
||||
# $a[1] = " $a[1]";
|
||||
# $a[1] =~ s/</</g;
|
||||
# $a[1] =~ s/>/>/g;
|
||||
# $str .= sprintf("%-15s%-50s<br/>%s<br/>", $cmd, $a[0], $a[1]);
|
||||
# }
|
||||
#
|
||||
# return "$str</pre></html>";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user