I have some html content, it comes from a external library so i can not change it, it has many <span>
and <div>
tags with attributes like: <span style="color: #0000ff;">
, but when i use:
$render = array( '#markup' => $myhtmlcontent, );
In a render array, Drupal strips the attributes, and it keeps just <span>
without the styles.
So, how can I avoid Drupal changes what I pass as markup, which doesn’t need any filter because the library makes it safe, or at last make it allow styles?