Welcome Guest, Not a member yet? Register   Sign In
Custom Parser-plugin
#1

HI,

I have a custom parser-plugin it work as expected except if I use any accent character in one of the parameters

Simplified plugin:

PHP Code:
public static function link_logo$params = []): string
{
     return '<span class="text-secondary h85">'$params['link_text'] . '</span>';

Content to render works perfectly:

PHP Code:
$parser = \Config\Services::parser();
$item 'would you like to {+ link_logo  link_text="Online Spanish test level" +}';
echo 
$parser->renderString($item); 


If I change the $item to use some accent characters the plugin is not executed

PHP Code:
$item 'would you like to {+ link_logo  link_text="Online español test level" +}'
this echo the text as declared

Any help would be appreciated


Reply
#2

It is a bug.
I sent a PR: https://github.com/codeigniter4/CodeIgniter4/pull/6835
Reply
#3

Thanks
A good decision is based on knowledge and not on numbers. - Plato

Reply
#4

@kenjis Thank you.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB