Better modx_sanitize_gpc - 3nd try

In the old version, MODX tags separated in two superglobal array members were not sanitized. But if they are shown in the right order, the tags are evaluated by the parser.

Rewritten/modified the code from the japanese community.

Tags are converted into hexadecimal entities in GPC keys and values. Otherwise [<​b​>[ code is not sanitized but after a strip_tags it is a valid MODX tag.