Someone
public php v1 · immutable<?php$regex = '/&(lt|gt);/';$string = '<b>';echo preg_replace_callback($regex, 'myDecode', $string);function myDecode($matches){ return html_entity_decode($matches[0]);}<?php$regex = '/&(lt|gt);/';$string = '<b>';echo preg_replace_callback($regex, 'myDecode', $string);function myDecode($matches){ return html_entity_decode($matches[0]);}