function wsh_insertion_callback_for_editor($matches) { $code = wsh_get_block_from_matches($matches); return htmlspecialchars($code, ENT_NOQUOTES); }
function wsh_insertion_callback_for_editor($matches) { $code = wsh_get_block_from_matches($matches); if (!function_exists('format_for_editor') || has_filter('the_editor_content', 'format_for_editor')) { $code = htmlspecialchars($code, ENT_NOQUOTES); } return $code; }