StrEscape, StrQuoteMeta From PHP to PB. (quotemeta, addslashes)

Posted by on June 11, 2008

If you’re used to PHP, you might of know the functions ‘quotemeta();’ and ‘addslashes();’ are very, very useful when dealing with user Input and similar activities where escaping certain entities (characters!) is very important.

This routines, while not too elegant, do the same (or similar) job as PHP but in PB:

The equivalent to quotemeta(); in PHP can be found in here.
Whereas the addslashes(); counterpart is located in here.
(I know, the PHP lexer I’m using has a bug on the PB definition, I’ll take a look later).