guptahanu / google-ajax-apis

Automatically exported from code.google.com/p/google-ajax-apis
0 stars 1 forks source link

The first tag in HTML text appears #452

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add a text with several <br/> tags, <p>text...</p>, <table>, etc.
2. do the translation to a DIV by setting the inner HTML.

What is the expected output? What do you see instead?
The text should be well formatted according to the html input, but after 
rendering, the first HTML tag appears in the output as "<br>" and that tag 
does not take place in the formatting, so the text appear without the line 
break.

What version of the product are you using? On what operating system?
AJAX Translation API, Windows XP SP2, Google Chrome.

Please provide any additional information below.
Also the input text seems to have a limit in size, so after entering too 
much words the translation does not return any text. 

Original issue reported on code.google.com by ivansald...@gmail.com on 5 May 2010 at 11:28

GoogleCodeExporter commented 8 years ago
To figure out what's going on with your actual issue, we're going to need a 
link or
something that will demonstrate what's going on.

Re: the limit on the string that you can translate, there is indeed a 
5,000-character
limit on the string the API will translate, which is mentioned in a number of 
places
in the TOS, issue tracker, and group, though I'm not sure it's actually in the
documentation. There are, however, a couple of provisos about that limit that 
must be
noted. First, it is 5,000 characters AFTER the string is url-encoded. This can 
be a
significant thing in a number of languages. And second, the full 5,000 character
limit is only available via the RESTful interface, using the POST method to 
submit
data. Via the JS side of the API, for technical reasons, you must use GET, and 
so all
of the data including the string to be translated is passed via the url. MSIE 
imposes
a limit of a little more than 2,000 characters on URL lengths, and Google has 
put a
limit of 2,000 characters on all the urls that its servers will process. So if 
the
API path + all other parameters + your url-encoded string > 2,000 characters, 
you
won't get a response.

Original comment by jrgeer...@gmail.com on 6 May 2010 at 12:38

GoogleCodeExporter commented 8 years ago
We never heard back but since the HTML tags were mentioned it sounds like this 
might be related to issue 149.

Original comment by jscud.w...@gmail.com on 7 Aug 2010 at 2:44