Google Translate translates inline Javascript Code
I have some PHP code that sends a section of html code including some inline Javascript code by curl to google. When i get it back from Google 开发者_如何学编程translated into the language that i chose, the Javascript code has been translated too.
Any ideas as to how i can stop Google translating my inline JavaScript code? Thanks, M
Don't use inline JavaScript code at all...
You shouldn't really send any code, whether its HTML or Javascript, to a language translator. I suggest translating it before encapsulating it in HTML or parsing it out of the HTML before translating.
精彩评论