encode()
encode(string $content, boolean $quotes = false) : string
Encode a Unicode string to an XML document using NCR.
Parameters
| string | $content | The unicode string to encode. |
| boolean | $quotes | Optional. Encode quote characters. |
Returns
string —The encoded string.