All pastes #896693 Raw Edit

Someone

public php v1 · immutable
·published 2008-02-08 21:53 UTC
rendered paste body
<?php$regex = '/&(lt|gt);/';$string = '&lt;b&gt;';echo preg_replace_callback($regex, 'myDecode', $string);function myDecode($matches){    return html_entity_decode($matches[0]);}