<?php $obj = new stdClass; $obj->property = '<a href="/some/link" target="_blank">link\'s text</a>'; print json_encode($obj, JSON_HEX_APOS | JSON_HEX_QUOT);
You have javascript disabled. You will not be able to edit any code.