Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Jan 19, 2022
1 parent 51b5a4e commit 6e9fcaa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
Expand Up @@ -33,10 +33,6 @@ public function postComment(Request $request)
}
}





$rules = [];
$inputs = $request->all();
if(isset($inputs['rel']) and !isset($inputs['rel_type'])){
Expand Down Expand Up @@ -104,7 +100,7 @@ public function postComment(Request $request)
}

if (!empty($saveComment['comment_body']) and !empty($inputs['format']) and $inputs['format'] == 'markdown') {
$saveComment['comment_body'] = Markdown::convertToHtml($saveComment['comment_body']);
$saveComment['comment_body'] = htmlentities($saveComment['comment_body']);
}

$save = Comment::create($saveComment);
Expand Down
Expand Up @@ -58,7 +58,7 @@
<div class="js-comment-body-text">{{ $comment['comment_body'] }}</div>
<span class="js-comment-body-textarea" style="display: none;">
<small class="text-muted">Comment:</small>
<textarea name="comment_body" class="form-control">{{ $comment['comment_body'] }}</textarea>
<textarea name="comment_body" class="form-control">{{ $comment['comment_body'] }}§</textarea>
</span>
</div>

Expand Down
Expand Up @@ -62,7 +62,7 @@
<small class="text-muted">says:</small>
</h6>
<div>
<p>{!! $notification['comment_body'] !!}</p>
<p>{{ $notification['comment_body'] }}</p>
</div>


Expand Down

0 comments on commit 6e9fcaa

Please sign in to comment.