Skip to content

Commit f2cd0d7

Browse files
authored
Apply suggestions from code review
1 parent c872c15 commit f2cd0d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

html_sanitizer.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -913,16 +913,16 @@ the HTML sanitizer: ``src``, ``href``, ``lowsrc``, ``background`` and ``ping``.
913913
->sanitizer('app.post_sanitizer')
914914
// if `true`, all URLs using the `http://` scheme will be converted to
915915
// use the `https://` scheme instead. `http` still needs to be
916-
// allowed in `allowMediaSchemes`
916+
// allowed in `allowedMediaSchemes`
917917
->forceHttpsUrls(true)
918918
919919
// specifies the allowed URL schemes. If the URL has a different scheme, the
920920
// attribute will be dropped
921-
->allowMediaSchemes(['http', 'https', 'mailto'])
921+
->allowedMediaSchemes(['http', 'https', 'mailto'])
922922
923923
// specifies the allowed hosts, the attribute will be dropped if the URL
924924
// contains a different host which is not a subdomain of the allowed host
925-
->allowMediaHosts(['symfony.com']) // Also allows any subdomain (i.e. www.symfony.com)
925+
->allowedMediaHosts(['symfony.com']) // Also allows any subdomain (i.e. www.symfony.com)
926926
927927
// whether to allow relative URLs (i.e. URLs without scheme and host)
928928
->allowRelativeMedias(true)

0 commit comments

Comments
 (0)