Skip to content

Commit 83aeeeb

Browse files
authored
Fix documentation of allow* function calls
1 parent 886c35d commit 83aeeeb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,19 @@ $config = (new HtmlSanitizerConfig())
6363
->forceHttpsUrls()
6464

6565
// Configure which schemes are allowed in links (others will be dropped)
66-
->allowedLinkSchemes(['https', 'http', 'mailto'])
66+
->allowLinkSchemes(['https', 'http', 'mailto'])
6767

6868
// Configure which hosts are allowed in links (by default all are allowed)
69-
->allowedLinkHosts(['symfony.com', 'example.com'])
69+
->allowLinkHosts(['symfony.com', 'example.com'])
7070

7171
// Allow relative URL in links (by default they are dropped)
7272
->allowRelativeLinks()
7373

7474
// Configure which schemes are allowed in img/audio/video/iframe (others will be dropped)
75-
->allowedMediaSchemes(['https', 'http'])
75+
->allowMediaSchemes(['https', 'http'])
7676

7777
// Configure which hosts are allowed in img/audio/video/iframe (by default all are allowed)
78-
->allowedMediaHosts(['symfony.com', 'example.com'])
78+
->allowMediaHosts(['symfony.com', 'example.com'])
7979

8080
// Allow relative URL in img/audio/video/iframe (by default they are dropped)
8181
->allowRelativeMedias()

0 commit comments

Comments
 (0)