HTML on language lines - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: HTML on language lines (/showthread.php?tid=78065) |
HTML on language lines - lucky - 11-25-2020 Is there any way to print HTML using language lines? For example PHP Code: <?php PHP Code: echo lang('requirements.lang.in_intl'); Currently this is producing the following Code: PHP <a href="https://www.php.net/manual/en/book.intl.php" target="_blank">intl Extension</a>. I was expecting to get the parsed HTML PHP intl Extension RE: HTML on language lines - neoneeco - 11-25-2020 Hi I don't know, I don't have the solution, but have you test some ideas : echo (echo lang('requirements.lang.in_intl')); or print_r ? (or something like that ?) or : PHP Code: $return = lang('requirements.lang.in_intl'); does the eval() function can be applied here , RE: HTML on language lines - lucky - 11-26-2020 neoneeco, I've tried that but did not work. I should explain that I'm using the parser and I'm providing those language lines inside a parser loop. For example: PHP Code: {languages} The parser is set to use raw data, so it should work. But it does not :/ |