micheldumontier/php-lib — pull request #17 by jctoledo (2012-10-26 19:32:34+00:00)
Title: Created specialEscape function and modified SafeLiteral

I have added a function specialEscape that escapes characters in strings such that the output creates strings within the N-Triples character production range (http://www.w3.org/2001/sw/RDFCore/ntriples/#character). I modified SafeLiteral to call specialEscape as well.

Here is the code that I used to test the function.

specialEscape($t4);
?>