Created
January 24, 2017 02:08
-
-
Save sepiariver/908ef21b73690d3519999140d38b31a3 to your computer and use it in GitHub Desktop.
Use the MODX filterPathSegment method to filter a string value into valid URL syntax. Useful for HTML attribute values as well.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$options = $modx->getOption('options', $scriptProperties, $modx->getOption('friendly_alias_restrict_chars_pattern'), true); | |
return $modx->filterPathSegment($input, array('friendly_alias_restrict_chars_pattern' => $options)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment