LiquidJS

TutorialsTagsFiltersPlaygroundAPI
GitHub
Overviewabsappendarray_to_sentence_stringat_leastat_mostcapitalizeceilcgi_escapecompactconcatdatedate_to_long_stringdate_to_rfc822date_to_stringdate_to_xmlschemadefaultdivided_bydowncaseescapeescape_oncefindfind_expfind_indexfind_index_expfirstfloorgroup_bygroup_by_exphashas_expinspectjoinjsonjsonifylastlstripmapminusmodulonewline_to_brnormalize_whitespacenumber_of_wordspluspoppushprependrawrejectreject_expremoveremove_firstremove_lastreplacereplace_firstreplace_lastreverseroundrstripshiftsizesliceslugifysortsort_naturalsplitstripstrip_htmlstrip_newlinessumtimesto_integertruncatetruncatewordsuniqunshiftupcaseuri_escapeurl_decodeurl_encodewherewhere_expxml_escape

cgi_escape

v10.13.0

CGI escape a string for use in a URL. Replaces any special characters with appropriate %XX replacements. CGI escape normally replaces a space with a plus + sign.

Input

{{ "foo, bar; baz?" | cgi_escape }}

Output

foo%2C+bar%3B+baz%3F
Last updated: 2025-05-09 PrevNext
Contents
Back to Top
© 2025 Harttle
Documentation licensed under CC BY 4.0.
    TutorialsTagsFiltersPlaygroundAPI
Overviewabsappendarray_to_sentence_stringat_leastat_mostcapitalizeceilcgi_escapecompactconcatdatedate_to_long_stringdate_to_rfc822date_to_stringdate_to_xmlschemadefaultdivided_bydowncaseescapeescape_oncefindfind_expfind_indexfind_index_expfirstfloorgroup_bygroup_by_exphashas_expinspectjoinjsonjsonifylastlstripmapminusmodulonewline_to_brnormalize_whitespacenumber_of_wordspluspoppushprependrawrejectreject_expremoveremove_firstremove_lastreplacereplace_firstreplace_lastreverseroundrstripshiftsizesliceslugifysortsort_naturalsplitstripstrip_htmlstrip_newlinessumtimesto_integertruncatetruncatewordsuniqunshiftupcaseuri_escapeurl_decodeurl_encodewherewhere_expxml_escape