Fix issue#1
This commit is contained in:
parent
4797da562b
commit
0504555774
2 changed files with 13 additions and 2 deletions
|
@ -155,6 +155,15 @@ class NotesController extends Controller
|
|||
*/
|
||||
public function taggedNotes($tag)
|
||||
{
|
||||
$tag = mb_strtolower(
|
||||
preg_replace(
|
||||
'/&([a-z]{1,2})(acute|cedil|circ|grave|lig|orn|ring|slash|th|tilde|uml|caron);/i',
|
||||
'$1',
|
||||
htmlentities($tag)
|
||||
),
|
||||
'UTF-8'
|
||||
);
|
||||
|
||||
$tagId = Tag::where('tag', $tag)->pluck('id');
|
||||
$notes = Tag::find($tagId)->notes()->orderBy('updated_at', 'desc')->get();
|
||||
foreach ($notes as $note) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue