Welcome Guest, Not a member yet? Register   Sign In
HTML on language lines
#1

Is there any way to print HTML using language lines?

For example

PHP Code:
<?php

return [
    'lang' => [
        'in_intl' => 'PHP <a href="https://www.php.net/manual/en/book.intl.php" target="_blank">intl Extension</a>.',
        'in_libcurl' => 'PHP <a href="https://www.php.net/manual/en/book.curl.php" target="_blank">libcurl Extension</a>.',
        'in_mbstring' => 'PHP <a href="https://www.php.net/manual/en/book.mbstring.php" target="_blank">mbstring Extension</a>.',
        'in_json' => 'PHP <a href="https://www.php.net/manual/en/book.json.php" target="_blank">json Extension</a>.',
        'in_xml' => 'PHP <a href="https://www.php.net/manual/en/book.libxml.php" target="_blank">xml Extension</a>.',
        'in_mysqlnd' => 'PHP <a href="https://www.php.net/manual/en/book.mysqlnd.php" target="_blank">mysqlnd Extension</a>.',
    ],
]; 


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
Reply


Messages In This Thread
HTML on language lines - by lucky - 11-25-2020, 12:00 PM
RE: HTML on language lines - by neoneeco - 11-25-2020, 03:15 PM
RE: HTML on language lines - by lucky - 11-26-2020, 12:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB