* Handling html tags.

This commit is contained in:
leiyong
2022-06-09 07:33:00 +00:00
parent c44b1096c4
commit 1b511cac59
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -90,7 +90,7 @@ class kanban extends control
}
$space = $this->kanban->getSpaceById($spaceID);
$space->desc = strip_tags($space->desc);
$space->desc = strip_tags(htmlspecialchars_decode($space->desc));
$typeList = $this->lang->kanbanspace->typeList;
if($space->type == 'cooperation' or $space->type == 'public') unset($typeList['private']);
@@ -256,7 +256,7 @@ class kanban extends control
}
$kanban = $this->kanban->getByID($kanbanID);
$kanban->desc = strip_tags($kanban->desc);
$kanban->desc = strip_tags(htmlspecialchars_decode($kanban->desc));
$space = $this->kanban->getSpaceById($kanban->space);
$spaceUsers = trim($space->owner) . ',' . trim($space->team);
+1 -1
View File
@@ -47,7 +47,7 @@
<?php echo $space->name;?>
</p>
</div>
<?php $space->desc = empty($space->desc) ? $lang->kanban->emptyDesc : strip_tags($space->desc);?>
<?php $space->desc = empty($space->desc) ? $lang->kanban->emptyDesc : strip_tags(htmlspecialchars_decode($space->desc));?>
<p class="spaceDesc text-ellipsis text-primary" title='<?php echo $space->desc;?>'><?php echo $space->desc;?></p>
</div>
<div class='spaceActions pull-right'>