Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit eb3ddc5

Browse files
author
Jamie Snape
committed
Fix various Markdown formatting issues
1 parent 3c3fc34 commit eb3ddc5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

core/controllers/CommunityController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ public function viewAction()
402402

403403
$this->view->title .= ' - '.$communityDao->getName();
404404
$this->view->metaDescription = substr(
405-
UtilityComponent::markdown(htmlspecialchars($communityDao->getDescription(), ENT_QUOTES, 'UTF-8')),
405+
UtilityComponent::markdown(htmlspecialchars($communityDao->getDescription(), ENT_COMPAT, 'UTF-8')),
406406
0,
407407
160
408408
);

modules/landingpage/controllers/IndexCoreController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function indexAction()
3737
$textDaos = $this->Landingpage_Text->getAll();
3838
if (isset($textDaos[0])) {
3939
$textDao = $textDaos[0];
40-
$this->view->landingText = UtilityComponent::markdown(htmlspecialchars($textDao->getText(), ENT_QUOTES, 'UTF-8'));
40+
$this->view->landingText = UtilityComponent::markdown(htmlspecialchars($textDao->getText(), ENT_COMPAT, 'UTF-8'));
4141
} else {
4242
$this->callCoreAction();
4343
}

modules/readmes/controllers/components/GetReadmeComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function fromFolder($folder)
4949
$path = $bitstream->getAssetstore()->getPath().'/'.$bitstream->getPath();
5050
$contents = file_get_contents($path);
5151
MidasLoader::loadComponent('Utility');
52-
$parsedContents = UtilityComponent::markdown(htmlspecialchars($contents, ENT_QUOTES, 'UTF-8'));
52+
$parsedContents = UtilityComponent::markdown(htmlspecialchars($contents, ENT_COMPAT, 'UTF-8'));
5353

5454
return array('text' => $parsedContents);
5555
}

0 commit comments

Comments
 (0)