server ver
This commit is contained in:
1
app/Services/Markdown.php
Normal file → Executable file
1
app/Services/Markdown.php
Normal file → Executable file
@@ -258,6 +258,7 @@ class Markdown extends \Parsedown {
|
||||
protected function inlineUrl($Excerpt) {
|
||||
$e = parent::inlineUrl($Excerpt);
|
||||
if (is_null($e)) return;
|
||||
$e['element']['attributes']['href'] = htmlspecialchars($e['element']['attributes']['href']);
|
||||
if (static::isImage($e['element']['attributes']['href'])) {
|
||||
$e['element']['name'] = 'img';
|
||||
$e['element']['attributes']['src'] = $e['element']['attributes']['href'];
|
||||
|
Reference in New Issue
Block a user