Skip to content

Add strip_tags option#201

Merged
florianeckerstorfer merged 1 commit intococur:masterfrom
thewilkybarkid:strip_tags
Mar 21, 2018
Merged

Add strip_tags option#201
florianeckerstorfer merged 1 commit intococur:masterfrom
thewilkybarkid:strip_tags

Conversation

@thewilkybarkid
Copy link
Contributor

Adds in an option to go through strip_tags() in case the string contains HTML etc.

I've not enabled it by default to avoid problems if using '<' etc on their own.


// Extract slugify arguments from config
$slugifyArguments = array_intersect_key($config, array_flip(['lowercase', 'separator', 'regexp', 'rulesets']));
$slugifyArguments = array_intersect_key($config, array_flip(['lowercase', 'trim', 'strip_tags', 'separator', 'regexp', 'rulesets']));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trim was missing here.

@florianeckerstorfer florianeckerstorfer merged commit bdb3dc8 into cocur:master Mar 21, 2018
@thewilkybarkid thewilkybarkid deleted the strip_tags branch March 26, 2018 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants