<?php
use PHPCensor\Helper\Lang;

$linkTemplate = $build->getFileLinkTemplate();

/** @var \PHPCensor\Model\BuildError[] $errors */
foreach ($errors as $error):

    $link = str_replace('{BASEFILE}', basename($error->getFile()), $linkTemplate);
    $link = str_replace('{FILE}', $error->getFile(), $link);
    $link = str_replace('{LINE}', $error->getLineStart(), $link);
    $link = str_replace('{LINE_END}', $error->getLineEnd(), $link);
?>

   <tr>
       <td>
           <span class="label label-<?php print $error->getSeverityClass(); ?>">
               <?php print Lang::get($error->getSeverityString()); ?>
           </span>
       </td>
       <td><?php print Lang::get($error->getPlugin()); ?></td>
       <td><a href="<?php print $link; ?>" target="_blank"><?php print $error->getFile(); ?></a></td>
       <td>
           <a href="<?php print $link; ?>" target="_blank">
           <?php
           if ($error->getLineStart() == $error->getLineEnd() || !$error->getLineEnd()) {
               print $error->getLineStart();
           } else {
               print $error->getLineStart() . ' - ' . $error->getLineEnd();
           }
           ?>
           </a>
       </td>
       <td class="visible-line-breaks"><?= trim($error->getMessage()); ?></td>

   </tr>

<?php endforeach; ?>

<?php
use PHPCensor\Helper\Lang;

$linkTemplate = $build->getFileLinkTemplate();

/** @var \PHPCensor\Model\BuildError[] $errors */
foreach ($errors as $error):

    $link = str_replace('{BASEFILE}', basename($error->getFile()), $linkTemplate);
    $link = str_replace('{FILE}', $error->getFile(), $link);
    $link = str_replace('{LINE}', $error->getLineStart(), $link);
    $link = str_replace('{LINE_END}', $error->getLineEnd(), $link);
?>

   <tr>
       <td>
           <span class="label label-<?php print $error->getSeverityClass(); ?>">
               <?php print Lang::get($error->getSeverityString()); ?>
           </span>
       </td>
       <td><?php print Lang::get($error->getPlugin()); ?></td>
       <td><a href="<?php print $link; ?>" target="_blank"><?php print $error->getFile(); ?></a></td>
       <td>
           <a href="<?php print $link; ?>" target="_blank">
           <?php
           if ($error->getLineStart() == $error->getLineEnd() || !$error->getLineEnd()) {
               print $error->getLineStart();
           } else {
               print $error->getLineStart() . ' - ' . $error->getLineEnd();
           }
           ?>
           </a>
       </td>
       <td class="visible-line-breaks"><?= htmlspecialchars(trim($error->getMessage())); ?></td>

   </tr>

<?php endforeach; ?>

Fix - convert html special chars in error message
Fix - convert html special chars in error message
