Page MenuHomePhorge
Diviner Arcanist Tech Docs phutil_escape_uri_path_component

function phutil_escape_uri_path_component($string)
Arcanist Technical Documentation ()

Escape text for inclusion as an infix URI substring. See discussion at phutil_escape_uri(). This function covers an unusual special case; phutil_escape_uri() is usually the correct function to use.

This function will escape a string into a format which is safe to put into a URI path and which does not contain '/' so it can be correctly parsed when embedded as a URI infix component.

However, you MUST decode the string with phutil_unescape_uri_path_component() before it can be used in the application.

Parameters
string$stringSome string.
Return
stringURI encoded string that is safe for infix composition.