optionhelp - support links markdown style (#2198)
This commit is contained in:
parent
36322f9129
commit
e5a2581dcc
|
@ -22,6 +22,7 @@ $optionHelpIndex = preg_replace( '/^ZM_/', '', $_REQUEST['option'] );
|
||||||
$optionHelpText = !empty($OLANG[$optionHelpIndex])?$OLANG[$optionHelpIndex]['Help']:$config[$_REQUEST['option']]['Help'];
|
$optionHelpText = !empty($OLANG[$optionHelpIndex])?$OLANG[$optionHelpIndex]['Help']:$config[$_REQUEST['option']]['Help'];
|
||||||
$optionHelpText = validHtmlStr($optionHelpText);
|
$optionHelpText = validHtmlStr($optionHelpText);
|
||||||
$optionHelpText = preg_replace( "/~~/", "<br/>", $optionHelpText );
|
$optionHelpText = preg_replace( "/~~/", "<br/>", $optionHelpText );
|
||||||
|
$optionHelpText = preg_replace( "/\[(.+)\]\((.+)\)/", "<a href=\"$2\" target=\"_blank\">$1</a>", $optionHelpText );
|
||||||
|
|
||||||
$focusWindow = true;
|
$focusWindow = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue