This file is part of a Moko Consulting project. SPDX-License-Identifier: GPL-3.0-or-later */ function console_log($output, $with_script_tags = true) { $js_code = 'console.log(' . json_encode($output, JSON_HEX_TAG) . ');'; if ($with_script_tags) { $js_code = ''; } echo $js_code; } ?>