Отображать отсутствующие параметры в команде справки cli на веб-странице с помощью JSONRPC

Я пытаюсь отобразить все содержимое команды «помощь» на веб-странице, над которой я работаю. В настоящее время print_r($coin->help(); показывает большую часть этого, но все необходимые параметры, кроме <'["key","key"]'> в addmultisigaddress, отсутствуют. Они отображаются в исходном коде страницы. , но не отображаются Я предполагаю, что это как-то связано с тем, что они заключены в < и >, но я бьюсь головой о стену, пытаясь понять проблему.

Веб-страница показывает: addmultisigaddress <'["key","key"]'> [account] backupwallet checkwallet createmultisig nrequired ["key",...] createrawtransaction [{"txid":txid,"vout":n},...] {address:amount,...} decoderawtransaction dumpprivkey encryptwallet getaccount getaccountaddress getaddressesbyaccount getbalance [account] [minconf=1] getblock [txinfo] [txdetails] getblockcount getblockhash getblocktemplate [params] getcheckpoint getconnectioncount getdifficulty getgenerate gethashespersec getinfo getmininginfo getnetworkghps getnewaddress [account] getpeerinfo getrawmempool getrawtransaction [verbose=0] getreceivedbyaccount [minconf=1] getreceivedbyaddress [minconf=1] gettransaction gettxout "txid" n ( includemempool ) getwork [data] help [command] importprivkey [label] keypoolrefill listaccounts [minconf=1] listaddressgroupings listminting [count=-1] [from=0] listreceivedbyaccount [minconf=1] [includeempty=false] listreceivedbyaddress [minconf=1] [includeempty=false] listsinceblock [blockhash] [target-confirmations] listtransactions [account] [count=10] [from=0] listunspent [minconf=1] [maxconf=9999999] ["address",...] makekeypair [prefix] move [minconf=1] [comment] repairwallet reservebalance [ [amount]] sendalert [cancelupto] sendfrom [minconf=1] [comment] [comment-to] sendmany {address:amount,...} [minconf=1] [comment] sendrawtransaction [checkinputs=0] sendtoaddress [comment] [comment-to] setaccount
setgenerate [genproclimit] settxfee signmessage
signrawtransaction [{"txid":txid,"vout":n,"scriptPubKey":hex},...] [,...] [sighashtype="ALL"] stop submitblock [optional-params-obj] validateaddress verifymessage

Исходник страницы показывает: addmultisigaddress <nrequired> <'["key","key"]'> [account] backupwallet <destination> checkwallet createmultisig nrequired ["key",...] createrawtransaction [{"txid":txid,"vout":n},...] {address:amount,...} decoderawtransaction <hex string> dumpprivkey <paycoinaddress> encryptwallet <passphrase> getaccount <paycoinaddress> getaccountaddress <account> getaddressesbyaccount <account> getbalance [account] [minconf=1] getblock <hash> [txinfo] [txdetails] getblockcount getblockhash <index> getblocktemplate [params] getcheckpoint getconnectioncount getdifficulty getgenerate gethashespersec getinfo getmininginfo getnetworkghps getnewaddress [account] getpeerinfo getrawmempool getrawtransaction <txid> [verbose=0] getreceivedbyaccount <account> [minconf=1] getreceivedbyaddress <paycoinaddress> [minconf=1] gettransaction <txid> gettxout "txid" n ( includemempool ) getwork [data] help [command] importprivkey <paycoinprivkey> [label] keypoolrefill listaccounts [minconf=1] listaddressgroupings listminting [count=-1] [from=0] listreceivedbyaccount [minconf=1] [includeempty=false] listreceivedbyaddress [minconf=1] [includeempty=false] listsinceblock [blockhash] [target-confirmations] listtransactions [account] [count=10] [from=0] listunspent [minconf=1] [maxconf=9999999] ["address",...] makekeypair [prefix] move <fromaccount> <toaccount> <amount> [minconf=1] [comment] repairwallet reservebalance [<reserve> [amount]] sendalert <message> <privatekey> <minver> <maxver> <priority> <id> [cancelupto] sendfrom <fromaccount> <topaycoinaddress> <amount> [minconf=1] [comment] [comment-to] sendmany <fromaccount> {address:amount,...} [minconf=1] [comment] sendrawtransaction <hex string> [checkinputs=0] sendtoaddress <paycoinaddress> <amount> [comment] [comment-to] setaccount <paycoinaddress> <account> setgenerate <generate> [genproclimit] settxfee <amount> signmessage <paycoinaddress> <message> signrawtransaction <hex string> [{"txid":txid,"vout":n,"scriptPubKey":hex},...] [<privatekey1>,...] [sighashtype="ALL"] stop submitblock <hex data> [optional-params-obj] validateaddress <paycoinaddress> verifymessage <paycoinaddress> <signature> <message> Что дает? Кто-нибудь может помочь?

Ответы (1)

Он интерпретирует <>как html.

Заключите строку справки с помощью <code>$string</code>или запустите htmlspecialchars для строки.