WebTechKitchen; Your Web Technology Kitchen, contact us to create, or maintain your websites and other digital properties.

Drupal render arrays allowing html markup -- allowed tags

Submitted by barnettech on Thu, 01/23/2020 - 11:50
    $html = 'globe ';
    $html2 = '';
    return array(
      '#markup' => $html . $html2 . $html3 . $html4 . $html5 . $html6 . $html7,
      '#allowed_tags' => ['img', 'select', 'option'],
    );