user26860: I am trying to get the entire contents of the "help" command to show up on a web page I am working on. Currently print_r($coin->help(); shows most of  it, but all of the required parameters, except <'["key","key"]'> under addmultisigaddress, are missing. They show up in the page source, but don't get displayed. I am assuming that it has something to do with them being enclosed in < and >, but I am banging my head against the wall trying to figure out the issue.
The web page shows:

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
 
The page source shows:

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>

What gives? Can anyone help?

user2306: It's interpreting the <>'s as html.
Enclose the help string with <code>$string</code>, or run htmlspecialchars on the string.

26860: <p>I am trying to get the entire contents of the "help" command to show up on a web page I am working on. Currently print_r($coin->help(); shows most of  it, but all of the required parameters, except &lt;'["key","key"]'> under addmultisigaddress, are missing. They show up in the page source, but don't get displayed. I am assuming that it has something to do with them being enclosed in &lt; and >, but I am banging my head against the wall trying to figure out the issue.</p>

<p>The web page shows:
<code>
addmultisigaddress  &lt;'["key","key"]'&gt; [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<br>
setgenerate  [genproclimit]
settxfee 
signmessage<br>
signrawtransaction  [{"txid":txid,"vout":n,"scriptPubKey":hex},...] [,...] [sighashtype="ALL"]
stop
submitblock  [optional-params-obj]
validateaddress 
verifymessage
</code> </p>

<p>The page source shows:
<code>
addmultisigaddress &lt;nrequired&gt; &lt;'["key","key"]'&gt; [account]
backupwallet &lt;destination&gt;
checkwallet
createmultisig nrequired ["key",...]
createrawtransaction [{"txid":txid,"vout":n},...] {address:amount,...}
decoderawtransaction &lt;hex string&gt;
dumpprivkey &lt;paycoinaddress&gt;
encryptwallet &lt;passphrase&gt;
getaccount &lt;paycoinaddress&gt;
getaccountaddress &lt;account&gt;
getaddressesbyaccount &lt;account&gt;
getbalance [account] [minconf=1]
getblock &lt;hash&gt; [txinfo] [txdetails]
getblockcount
getblockhash &lt;index&gt;
getblocktemplate [params]
getcheckpoint
getconnectioncount
getdifficulty
getgenerate
gethashespersec
getinfo
getmininginfo
getnetworkghps
getnewaddress [account]
getpeerinfo
getrawmempool
getrawtransaction &lt;txid&gt; [verbose=0]
getreceivedbyaccount &lt;account&gt; [minconf=1]
getreceivedbyaddress &lt;paycoinaddress&gt; [minconf=1]
gettransaction &lt;txid&gt;
gettxout "txid" n ( includemempool )
getwork [data]
help [command]
importprivkey &lt;paycoinprivkey&gt; [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 &lt;fromaccount&gt; &lt;toaccount&gt; &lt;amount&gt; [minconf=1] [comment]
repairwallet
reservebalance [&lt;reserve&gt; [amount]]
sendalert &lt;message&gt; &lt;privatekey&gt; &lt;minver&gt; &lt;maxver&gt; &lt;priority&gt; &lt;id&gt; [cancelupto]
sendfrom &lt;fromaccount&gt; &lt;topaycoinaddress&gt; &lt;amount&gt; [minconf=1] [comment] [comment-to]
sendmany &lt;fromaccount&gt; {address:amount,...} [minconf=1] [comment]
sendrawtransaction &lt;hex string&gt; [checkinputs=0]
sendtoaddress &lt;paycoinaddress&gt; &lt;amount&gt; [comment] [comment-to]
setaccount &lt;paycoinaddress&gt; &lt;account&gt;
setgenerate &lt;generate&gt; [genproclimit]
settxfee &lt;amount&gt;
signmessage &lt;paycoinaddress&gt; &lt;message&gt;
signrawtransaction &lt;hex string&gt; [{"txid":txid,"vout":n,"scriptPubKey":hex},...] [&lt;privatekey1&gt;,...] [sighashtype="ALL"]
stop
submitblock &lt;hex data&gt; [optional-params-obj]
validateaddress &lt;paycoinaddress&gt;
verifymessage &lt;paycoinaddress&gt; &lt;signature&gt; &lt;message&gt;
</code>
What gives? Can anyone help?</p>
 2306: <p>It's interpreting the <code>&lt;&gt;</code>'s as html.</p>

<p>Enclose the help string with <code>&lt;code&gt;$string&lt;/code&gt;</code>, or run htmlspecialchars on the string.</p>
