1
0
Fork 0

Merge pull request #8277 from MrPetovan/task/8251-use-about-for-pdesc

Remove profile about field double HTML escaping
This commit is contained in:
Michael Vogel 2020-02-12 05:23:04 +01:00 committed by GitHub
commit 13a10b8f20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 16 additions and 14 deletions

View file

@ -26,6 +26,7 @@
use Friendica\App;
use Friendica\Content\Feature;
use Friendica\Content\Nav;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Widget;
use Friendica\Core\Renderer;
use Friendica\Core\Session;
@ -70,14 +71,14 @@ function cal_init(App $a)
$account_type = Contact::getAccountType($profile);
$tpl = Renderer::getMarkupTemplate("widget/vcard.tpl");
$tpl = Renderer::getMarkupTemplate('widget/vcard.tpl');
$vcard_widget = Renderer::replaceMacros($tpl, [
'$name' => $profile['name'],
'$photo' => $profile['photo'],
'$addr' => $profile['addr'] ?: '',
'$account_type' => $account_type,
'$about' => $profile['about'] ?: '',
'$about' => BBCode::convert($profile['about'] ?: ''),
]);
$cal_widget = Widget\CalendarExport::getHTML();