- utf8_encode: documentation ( source)
- json_encode: documentation ( source)
<?php
echo json_encode(utf8_encode('<ul><li><span style="font-size: small;">Le\'Xpress classic straight sided teapot</span></li><li><span style="font-size: small;">Manufactured from high grade stainless steel with a hinged lid</span></li><li><span style="font-size: small;">Additional sizes also available</span></li><li><span style="font-size: small;">Capacity: 12 cup (2 litre)</span></li><li><span style="font-size: small;">Dishwasher safe</span></li></ul>'));