About Sanitizer Transliterate

Adds a transliterate method to $sanitizer that performs character substitutions as defined in the module config.

Category Other Modules
Modules that have a unique purpose not covered by existing categories.
Release StateBeta
Close to stable, but users are advised to be cautious and test thoroughly.*
Authorrobin-s
Module Version0.1.0
Class NameSanitizerTransliterate
Compatibility3.0
Date AddedMarch 11, 2019
Recommended ByNew recommendations may take up to 1 day to appear.

Instructions

This module's files should be placed in /site/modules/SanitizerTransliterate/
How to install or uninstall modules

README

Sanitizer Transliterate

A module for ProcessWire CMS/CMF. Adds a transliterate method to $sanitizer that performs character replacements as defined in the module config. The default character replacements are based on the defaults from InputfieldPageName, but with uppercase characters included too.

Usage

Install the Sanitizer Transliterate module.

Customise the character replacements in the module config as needed.

Use the sanitizer on strings like so:

$transliterated_string = $sanitizer->transliterate($string);

transliterate

Comments

No comments yet. Be the first to post!

Post a Comment

Your e-mail is kept confidential and not included with your comment. Website is optional.