@@ -789,17 +789,17 @@ URLs of ``<a>`` elements:
789
789
->sanitizer('app.post_sanitizer')
790
790
// if `true`, all URLs using the `http://` scheme will be converted to
791
791
// use the `https://` scheme instead. `http` still needs to be
792
- // allowed in `allowedLinkSchemes `
792
+ // allowed in `allowLinkSchemes `
793
793
->forceHttpsUrls(true)
794
794
795
795
// specifies the allowed URL schemes. If the URL has a different scheme, the
796
796
// attribute will be dropped
797
- ->allowedLinkSchemes (['http', 'https', 'mailto'])
797
+ ->allowLinkSchemes (['http', 'https', 'mailto'])
798
798
799
799
// specifies the allowed hosts, the attribute will be dropped if the
800
800
// URL contains a different host. Subdomains are allowed: e.g. the following
801
801
// config would also allow 'www.symfony.com', 'live.symfony.com', etc.
802
- ->allowedLinkHosts (['symfony.com'])
802
+ ->allowLinkHosts (['symfony.com'])
803
803
804
804
// whether to allow relative links (i.e. URLs without scheme and host)
805
805
->allowRelativeLinks(true)
@@ -815,16 +815,16 @@ URLs of ``<a>`` elements:
815
815
(new HtmlSanitizerConfig())
816
816
// if `true`, all URLs using the `http://` scheme will be converted to
817
817
// use the `https://` scheme instead. `http` still needs to be
818
- // allowed in `allowedLinkSchemes `
818
+ // allowed in `allowLinkSchemes `
819
819
->forceHttpsUrls()
820
820
821
821
// specifies the allowed URL schemes. If the URL has a different scheme, the
822
822
// attribute will be dropped
823
- ->allowedLinkSchemes (['http', 'https', 'mailto'])
823
+ ->allowLinkSchemes (['http', 'https', 'mailto'])
824
824
825
825
// specifies the allowed hosts, the attribute will be dropped if the
826
826
// URL contains a different host which is not a subdomain of the allowed host
827
- ->allowedLinkHosts (['symfony.com']) // Also allows any subdomain (i.e. www.symfony.com)
827
+ ->allowLinkHosts (['symfony.com']) // Also allows any subdomain (i.e. www.symfony.com)
828
828
829
829
// whether to allow relative links (i.e. URLs without scheme and host)
830
830
->allowRelativeLinks()
@@ -909,16 +909,16 @@ the HTML sanitizer: ``src``, ``href``, ``lowsrc``, ``background`` and ``ping``.
909
909
->sanitizer('app.post_sanitizer')
910
910
// if `true`, all URLs using the `http://` scheme will be converted to
911
911
// use the `https://` scheme instead. `http` still needs to be
912
- // allowed in `allowedMediaSchemes `
912
+ // allowed in `allowMediaSchemes `
913
913
->forceHttpsUrls(true)
914
914
915
915
// specifies the allowed URL schemes. If the URL has a different scheme, the
916
916
// attribute will be dropped
917
- ->allowedMediaSchemes (['http', 'https', 'mailto'])
917
+ ->allowMediaSchemes (['http', 'https', 'mailto'])
918
918
919
919
// specifies the allowed hosts, the attribute will be dropped if the URL
920
920
// contains a different host which is not a subdomain of the allowed host
921
- ->allowedMediaHosts (['symfony.com']) // Also allows any subdomain (i.e. www.symfony.com)
921
+ ->allowMediaHosts (['symfony.com']) // Also allows any subdomain (i.e. www.symfony.com)
922
922
923
923
// whether to allow relative URLs (i.e. URLs without scheme and host)
924
924
->allowRelativeMedias(true)
@@ -934,16 +934,16 @@ the HTML sanitizer: ``src``, ``href``, ``lowsrc``, ``background`` and ``ping``.
934
934
(new HtmlSanitizerConfig())
935
935
// if `true`, all URLs using the `http://` scheme will be converted to
936
936
// use the `https://` scheme instead. `http` still needs to be
937
- // allowed in `allowedMediaSchemes `
937
+ // allowed in `allowMediaSchemes `
938
938
->forceHttpsUrls()
939
939
940
940
// specifies the allowed URL schemes. If the URL has a different scheme, the
941
941
// attribute will be dropped
942
- ->allowedMediaSchemes (['http', 'https', 'mailto'])
942
+ ->allowMediaSchemes (['http', 'https', 'mailto'])
943
943
944
944
// specifies the allowed hosts, the attribute will be dropped if the URL
945
945
// contains a different host which is not a subdomain of the allowed host
946
- ->allowedMediaHosts (['symfony.com']) // Also allows any subdomain (i.e. www.symfony.com)
946
+ ->allowMediaHosts (['symfony.com']) // Also allows any subdomain (i.e. www.symfony.com)
947
947
948
948
// whether to allow relative URLs (i.e. URLs without scheme and host)
949
949
->allowRelativeMedias()
0 commit comments