mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
parent
3a2c781cb0
commit
12210d0fb0
2 changed files with 7 additions and 1 deletions
|
@ -100,6 +100,12 @@ class Club extends RowModel
|
|||
return $this->getRecord()->about;
|
||||
}
|
||||
|
||||
function getDescriptionHtml(): ?string
|
||||
{
|
||||
if(!is_null($this->getDescription()))
|
||||
return nl2br(htmlspecialchars($this->getDescription(), ENT_DISALLOWED | ENT_XHTML));
|
||||
}
|
||||
|
||||
function getShortCode(): ?string
|
||||
{
|
||||
return $this->getRecord()->shortcode;
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><span class="nobold">{_"description"}:</span></td>
|
||||
<td>{$club->getDescription()}</td>
|
||||
<td>{$club->getDescriptionHtml()|noescape}</td>
|
||||
</tr>
|
||||
<tr n:if="!is_null($club->getWebsite())">
|
||||
<td><span class="nobold">{_"website"}: </span></td>
|
||||
|
|
Loading…
Reference in a new issue