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

Commit

Permalink
Fix various Markdown formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Snape committed Apr 15, 2015
1 parent 3c3fc34 commit eb3ddc5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/controllers/CommunityController.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ public function viewAction()

$this->view->title .= ' - '.$communityDao->getName();
$this->view->metaDescription = substr(
UtilityComponent::markdown(htmlspecialchars($communityDao->getDescription(), ENT_QUOTES, 'UTF-8')),
UtilityComponent::markdown(htmlspecialchars($communityDao->getDescription(), ENT_COMPAT, 'UTF-8')),
0,
160
);
Expand Down
2 changes: 1 addition & 1 deletion modules/landingpage/controllers/IndexCoreController.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function indexAction()
$textDaos = $this->Landingpage_Text->getAll();
if (isset($textDaos[0])) {
$textDao = $textDaos[0];
$this->view->landingText = UtilityComponent::markdown(htmlspecialchars($textDao->getText(), ENT_QUOTES, 'UTF-8'));
$this->view->landingText = UtilityComponent::markdown(htmlspecialchars($textDao->getText(), ENT_COMPAT, 'UTF-8'));
} else {
$this->callCoreAction();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function fromFolder($folder)
$path = $bitstream->getAssetstore()->getPath().'/'.$bitstream->getPath();
$contents = file_get_contents($path);
MidasLoader::loadComponent('Utility');
$parsedContents = UtilityComponent::markdown(htmlspecialchars($contents, ENT_QUOTES, 'UTF-8'));
$parsedContents = UtilityComponent::markdown(htmlspecialchars($contents, ENT_COMPAT, 'UTF-8'));

return array('text' => $parsedContents);
}
Expand Down

0 comments on commit eb3ddc5

Please sign in to comment.