in reply to Re^3: Perl, JavaScript and quoting/escaping
in thread Perl, JavaScript and quoting/escaping

*sigh*

This does something even if it doesn't produce the best results. I wouldn't be asking for help if I was doing the correct thing.

This string contains "(s) and it just so happens that escapeHTML changes them to something else. Thus this code will run without errors, even if the output it generates is not correct. With zero escaping the code fails to compile just after the second ".

As for the part you've taken above to mean something other then "Directly above this line of text" and instead as though top/bottom adjective were used. I think if you re-read it you'll see that I was talking about text/html and text/javascript respectively. Such that my statements about above make sense.

Ohh yes, my question is "WHERE CAN I FIND A FUNCTION THAT WILL DO WHAT YOU THINK I NEED A FUNCTION TO DO?" So every thing we are arguing about is completely pointless as you understand clearly what I am asking for. I don't know why you replied, but I'm replying mainly to read myself type.

Replies are listed 'Best First'.
Re^5: Perl, JavaScript and quoting/escaping
by ikegami (Patriarch) on May 06, 2011 at 05:55 UTC

    WHERE CAN I FIND A FUNCTION THAT WILL DO WHAT YOU THINK I NEED A FUNCTION TO DO?

    Huh??? How can you not know that it can be found here (text_to_js_lit)? This post points to a couple of others.

    So every thing we are arguing about is completely pointless as you understand clearly what I am asking for.

    Huh??? I didn't argue about anything. I've been trying to make sense of your posts. They've been filled with errors and they've been downright cryptic. And now I shall add mind-boggling to the list.

    No, I honestly did not think you located this old post of mine only to ask where it can be found!

      JSON->new->allow_nonref->encode