Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

PHPAdvocate

Name: Fix backwards /prog/ 2009-11-16 19:06

document.body.innerHTML = document.body.innerHTML.replace(/\u202B/g, '');

Let's see you do that in Lisp.

Name: Anonymous 2009-11-16 19:07

(fix-prog)

Name: Anonymous 2009-11-16 19:12

>>1
That's Javascript, not PHP.
As for the Lisp solution. There's Parenscript which compilers to JS: http://common-lisp.net/project/parenscript/ so it's probably possible, but why?

Name: Anonymous 2009-11-16 19:26

>>1
Let's see you do that in PHP

Name: Anonymous 2009-11-16 20:54

(set! document.body.innerHTML (document.body.innerHTML.replace (new RegExp (String.fromCharCode #x202B) "g") ""))

compiles to this with Scheme2Js:

document.body.innerHTML = document.body.innerHTML.replace(new RegExp(String.from
CharCode(8235), "g"), "");

Name: Anonymous 2009-11-17 2:05

$document.body.innerHTML = preg_replace("/\u202B/g", '', $document.body.innerHTML);

Don't change these.
Name: Email:
Entire Thread Thread List