Forked from sepiariver/filterpathsegment.snippet.php
Created
December 21, 2017 12:25
-
-
Save Burick/1c620010e9a1a5443ad93041f4532931 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