Display the drop-down list

Test of fgetss()

Example #1 : test success
Example #2 : test success
Example #1
$input = [
  
'data' => '<html><body>
                   <p>Welcome!</p>
                </body></html>
                Text outside of the HTML block.'
,
  
'__count' => 1,
  
'handle' => '$handle',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '   Welcome!
'
,
  ],
  
'php_version' => '7.1.24 Linux x86_64',
]
Example #2
$input = [
  
'data' => '<html><body>
                   <p>Welcome!</p>
                </body></html>
                Text outside of the HTML block.'
,
  
'__count' => 1,
  
'handle' => '$handle',
  
'length' => 100,
  
'allowable_tags' => '<p>',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '   <p>Welcome!</p>
'
,
  ],
  
'php_version' => '7.1.24 Linux x86_64',
]