How do I modify a string printed by a script?

Posted by Liso22 on Stack Overflow See other posts from Stack Overflow or by Liso22
Published on 2011-01-16T20:15:18Z Indexed on 2011/01/16 20:53 UTC
Read the original article Hit count: 167

Filed under:
|

I'm having problems with wordpress mishandling accented characters, or maybe the problem is with some plugin. Whichever the case I need to "translate" some strings, removing accents which i do with:

  $value = strtr($value, $trans);

I really need to change this string which renders the user's location but it's printed with a script so I have no idea how to do it:

<script language="javascript"> document.write('' + geoip_city() +''); </script>

Is there a way to assign it's result to a php value beforehand or something? Maybe removing the accents with a script. I really need to modify it, how could I manage to do it? Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript