1

Topic: Notice message from PHP on line 47

Hello, I'm getting the message:

NOTICE: htmLawed Undefined offset: 1 on htmLawed.php on line 47

I configured htmLawed this way:

$configHtmlLawed = array('comment'=>1, 'cdata'=>1, 'safe'=>1, 'schemes' => '*: data, http, https;');

HtmlLawed version is 1.2.4.1.
My php version is 7.1.8.

It's just a Notice, not a big deal, but I don't understand how to get rid of it.
Can you help me? Thanks

2

Re: Notice message from PHP on line 47

PHP is issuing the notice because of the semi-colon within the value for the 'schemes' key. To get rid of the notice, you can remove the semi-colon, or you can use the latest version of htmLawed (which was released today to handle this scenario).