. &amp;foo;</li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">XML-converted string</p>
</td>
</tr>
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">string</p>
</td>
</tr>
</tbody>
</table>
<p>Takes a string as input and converts the following reserved XML
characters to entities:</p>
<blockquote>
<div><ul class="simple">
<li>Ampersands: &amp;</li>
<li>Less than and gre