@@ -819,16 +819,16 @@ URLs of ``<a>`` elements:
819
819
(new HtmlSanitizerConfig())
820
820
// if `true`, all URLs using the `http://` scheme will be converted to
821
821
// use the `https://` scheme instead. `http` still needs to be
822
- // allowed in `allowedLinkSchemes `
822
+ // allowed in `allowLinkSchemes `
823
823
->forceHttpsUrls()
824
824
825
825
// specifies the allowed URL schemes. If the URL has a different scheme, the
826
826
// attribute will be dropped
827
- ->allowedLinkSchemes (['http', 'https', 'mailto'])
827
+ ->allowLinkSchemes (['http', 'https', 'mailto'])
828
828
829
829
// specifies the allowed hosts, the attribute will be dropped if the
830
830
// URL contains a different host which is not a subdomain of the allowed host
831
- ->allowedLinkHosts (['symfony.com']) // Also allows any subdomain (i.e. www.symfony.com)
831
+ ->allowLinkHosts (['symfony.com']) // Also allows any subdomain (i.e. www.symfony.com)
832
832
833
833
// whether to allow relative links (i.e. URLs without scheme and host)
834
834
->allowRelativeLinks()
@@ -938,16 +938,16 @@ the HTML sanitizer: ``src``, ``href``, ``lowsrc``, ``background`` and ``ping``.
938
938
(new HtmlSanitizerConfig())
939
939
// if `true`, all URLs using the `http://` scheme will be converted to
940
940
// use the `https://` scheme instead. `http` still needs to be
941
- // allowed in `allowedMediaSchemes `
941
+ // allowed in `allowMediaSchemes `
942
942
->forceHttpsUrls()
943
943
944
944
// specifies the allowed URL schemes. If the URL has a different scheme, the
945
945
// attribute will be dropped
946
- ->allowedMediaSchemes (['http', 'https', 'mailto'])
946
+ ->allowMediaSchemes (['http', 'https', 'mailto'])
947
947
948
948
// specifies the allowed hosts, the attribute will be dropped if the URL
949
949
// contains a different host which is not a subdomain of the allowed host
950
- ->allowedMediaHosts (['symfony.com']) // Also allows any subdomain (i.e. www.symfony.com)
950
+ ->allowMediaHosts (['symfony.com']) // Also allows any subdomain (i.e. www.symfony.com)
951
951
952
952
// whether to allow relative URLs (i.e. URLs without scheme and host)
953
953
->allowRelativeMedias()
0 commit comments