Skip to content

Commit

Permalink
Merge pull request #1805 from jools-r/dev-issue1803
Browse files Browse the repository at this point in the history
Add escape="url_title" option
  • Loading branch information
Bloke committed Apr 28, 2022
2 parents f84d84c + 4755327 commit 99547a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions textpattern/publish/taghandlers.php
Expand Up @@ -5263,6 +5263,9 @@ function txp_escape($escape, $thing = '')
case 'url':
$thing = $tidy ? rawurlencode($thing) : urlencode($thing);
break;
case 'url_title':
$thing = stripSpace($thing, 1);
break;
case 'js':
$thing = escape_js($thing);
break;
Expand Down

0 comments on commit 99547a1

Please sign in to comment.