From 8f2b4ac3cbe290acda3f05bb7aa3ccda9875feaa Mon Sep 17 00:00:00 2001 From: Dan Harrin Date: Mon, 29 Apr 2024 09:38:04 +0100 Subject: [PATCH] Apply suggestions from code review --- packages/notifications/docs/02-sending-notifications.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/notifications/docs/02-sending-notifications.md b/packages/notifications/docs/02-sending-notifications.md index 7bdd3dd64e..2345e1a2f4 100644 --- a/packages/notifications/docs/02-sending-notifications.md +++ b/packages/notifications/docs/02-sending-notifications.md @@ -45,7 +45,7 @@ Notification::make() ->send(); ``` -The title text can contain HTML: `->title(str('Saved **successfully**')->markdown())` +The title text can contain basic, safe HTML elements. To generate safe HTML with Markdown, you can use the [`Str::markdown()` helper](https://laravel.com/docs/strings#method-str-markdown): `title(Str::markdown('Saved **successfully**'))` Or with JavaScript: @@ -209,7 +209,7 @@ Notification::make() ->send(); ``` -The body text can contain HTML: `->body(str('Changes to the **post** have been saved.')->markdown())` +The body text can contain basic, safe HTML elements. To generate safe HTML with Markdown, you can use the [`Str::markdown()` helper](https://laravel.com/docs/strings#method-str-markdown): `body(Str::markdown('Changes to the **post** have been saved.'))` Or with JavaScript: