Estoy tratando de obtener todo el contenido del comando "ayuda" para que aparezca en una página web en la que estoy trabajando. Actualmente, print_r($coin->help(); muestra la mayor parte, pero faltan todos los parámetros requeridos, excepto <'["key","key"]'> en addmultisigaddress. Aparecen en la fuente de la página , pero no se muestran Supongo que tiene algo que ver con que estén encerrados en < y >, pero me estoy golpeando la cabeza contra la pared tratando de resolver el problema.
La página web muestra: 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
La página fuente muestra: ¿ 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>
Qué da? ¿Alguien puede ayudar?
Está interpretando el <>
's como html.
Encierre la cadena de ayuda con <code>$string</code>
o ejecute htmlspecialchars en la cadena.