Subversion Repositories bysoftdeveloper

[/] [tabs/] [translate/] [interact.php] - Blame information for rev 32

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 31 alvawu
<?php
2 32 alvawu
return <<<EOT
3 31 alvawu
function bysoftdeveloperShowTranslateTab(){
4
        _get('bysoftdeveloper-translate-source').onblur = function(e){
5
                var sourceText = _get('bysoftdeveloper-translate-source').value;
6
            sourceText = sourceText + '';
7
            sourceText = sourceText.replace(/\\&/g, '&amp;');
8
            sourceText = sourceText.replace(/\\\"/g, '&quot;');
9
            sourceText = sourceText.replace(/\\'/g, '&apos;');
10
            sourceText = sourceText.replace(/\\</g, '&lt;');
11
            sourceText = sourceText.replace(/\\>/g, '&gt;');
12
 
13
            // target
14
            _get('bysoftdeveloper-translate-result').value = sourceText;
15
        }
16
}
17
 
18
EOT;