@@ -793,17 +793,17 @@ URLs of ``<a>`` elements:
793
793
->sanitizer('app.post_sanitizer')
794
794
// if `true`, all URLs using the `http://` scheme will be converted to
795
795
// use the `https://` scheme instead. `http` still needs to be
796
- // allowed in `allowedLinkSchemes `
796
+ // allowed in `allowLinkSchemes `
797
797
->forceHttpsUrls(true)
798
798
799
799
// specifies the allowed URL schemes. If the URL has a different scheme, the
800
800
// attribute will be dropped
801
- ->allowedLinkSchemes (['http', 'https', 'mailto'])
801
+ ->allowLinkSchemes (['http', 'https', 'mailto'])
802
802
803
803
// specifies the allowed hosts, the attribute will be dropped if the
804
804
// URL contains a different host. Subdomains are allowed: e.g. the following
805
805
// config would also allow 'www.symfony.com', 'live.symfony.com', etc.
806
- ->allowedLinkHosts (['symfony.com'])
806
+ ->allowLinkHosts (['symfony.com'])
807
807
808
808
// whether to allow relative links (i.e. URLs without scheme and host)
809
809
->allowRelativeLinks(true)
@@ -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()
@@ -913,16 +913,16 @@ the HTML sanitizer: ``src``, ``href``, ``lowsrc``, ``background`` and ``ping``.
913
913
->sanitizer('app.post_sanitizer')
914
914
// if `true`, all URLs using the `http://` scheme will be converted to
915
915
// use the `https://` scheme instead. `http` still needs to be
916
- // allowed in `allowedMediaSchemes `
916
+ // allowed in `allowMediaSchemes `
917
917
->forceHttpsUrls(true)
918
918
919
919
// specifies the allowed URL schemes. If the URL has a different scheme, the
920
920
// attribute will be dropped
921
- ->allowedMediaSchemes (['http', 'https', 'mailto'])
921
+ ->allowMediaSchemes (['http', 'https', 'mailto'])
922
922
923
923
// specifies the allowed hosts, the attribute will be dropped if the URL
924
924
// contains a different host which is not a subdomain of the allowed host
925
- ->allowedMediaHosts (['symfony.com']) // Also allows any subdomain (i.e. www.symfony.com)
925
+ ->allowMediaHosts (['symfony.com']) // Also allows any subdomain (i.e. www.symfony.com)
926
926
927
927
// whether to allow relative URLs (i.e. URLs without scheme and host)
928
928
->allowRelativeMedias(true)
@@ -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