Allow html-links in service-details view / Create clickable links from script output

Seems like this can only be done by changing code in Libre. For my tests I changed includes/html/pages/devices/services.inc.php like this:

    if (str_contains(htmlentities($service['service_desc']), '!HTML!')) {
        echo '<td class="col-sm-4">' . nl2br(html_entity_decode(trim($service['service_message']))) . '</td>';
    } else {
        echo '<td class="col-sm-4">' . nl2br(htmlentities(trim($service['service_message']))) . '</td>';
    }

If you add the string “!HTML!” in the description of a service, the output will be rendered as HTML and not escaped. However, this is not a really “clean” solution and I will run into trouble when next update comes.

Is there any “overlay” mechanism where I could place such changes without breaking update mechanism and/or losing my changes?