mirror of
https://github.com/danog/telegram-entities.git
synced 2024-11-26 12:14:44 +01:00
Improve example
This commit is contained in:
parent
6fd7154c55
commit
86f82808f1
@ -72,7 +72,7 @@ $entities = Entities::fromHtml("<b>This is <i>a ❤️ nested</i> test</b>");
|
||||
$sm($entities->message, entities: $entities->entities);
|
||||
|
||||
// Convert markdown to an array of entities locally
|
||||
$entities = Entities::fromHtml("<b>This is <i>a ❤️ nested</i> test</b>");
|
||||
$entities = Entities::fromMarkdown("*This is _a ❤️ nested_ test*");
|
||||
$sm($entities->message, entities: $entities->entities);
|
||||
```
|
||||
|
||||
|
@ -50,7 +50,7 @@ $entities = Entities::fromHtml("<b>This is <i>a ❤️ nested</i> test</b>");
|
||||
$sm($entities->message, entities: $entities->entities);
|
||||
|
||||
// Convert markdown to an array of entities locally
|
||||
$entities = Entities::fromHtml("<b>This is <i>a ❤️ nested</i> test</b>");
|
||||
$entities = Entities::fromMarkdown("*This is _a ❤️ nested_ test*");
|
||||
$sm($entities->message, entities: $entities->entities);
|
||||
|
||||
// See https://github.com/danog/telegram-entities for the full list of available methods!
|
||||
|
Loading…
Reference in New Issue
Block a user