mirror of
https://github.com/Hopiu/django-rosetta.git
synced 2026-05-19 10:11:06 +00:00
Update rosetta.js
Yandex will convert < and > to html entities. Convert the entities back to normal characters.
This commit is contained in:
parent
19a2e7ed5a
commit
42c2492b85
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ google.setOnLoadCallback(function() {
|
|||
dataType: 'jsonp',
|
||||
success: function(response) {
|
||||
if (response.code == 200) {
|
||||
trans.val(response.text[0]);
|
||||
trans.val(response.text[0].replace(/<br>/g, '\n').replace(/</g, '<').replace(/>/g, '>'));
|
||||
a.hide();
|
||||
} else {
|
||||
a.text(response);
|
||||
|
|
|
|||
Loading…
Reference in a new issue