Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: tests/test_site/pages/translate-tmpl.tmpl

Issue 29912578: Issue 7048 - Fix erroneous markup escaping in translation strings (Closed) Base URL: https://hg.adblockplus.org/cms
Patch Set: Created Oct. 16, 2018, 10:37 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/test_site/locales/en/translate.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <body> 2 <body>
3 Simple TS with default: {{ 'Translate' | translate('simple') }}. 3 Simple TS with default: {{ 'Translate' | translate('simple') }}.
4 4
5 Same TS with no default: {{ get_string('simple') }}. 5 Same TS with no default: {{ get_string('simple') }}.
6 6
7 TS with fixed text: {{ 'Fixed <fix>text</fix>' | translate('fix-ts') }}. 7 TS with fixed text: {{ 'Fixed <fix>text</fix>' | translate('fix-ts') }}.
8 8
9 Nested translation: {{ '<a href="{{nested-link http://foo.com/}}">Foo</a> and <a href="{{nested-link2 http://baz.com/}}">Baz</a>' | translate('nested-ts') }}. 9 Nested translation: {{ '<a href="{{nested-link http://foo.com/}}">Foo</a> and <a href="{{nested-link2 http://baz.com/}}">Baz</a>' | translate('nested-ts') }}.
10 10
11 Link resolving: {{ '<a href="translate">This page</a>' | translate('linked-ts') }}. 11 Link resolving: {{ '<a href="translate">This page</a>' | translate('linked-ts') }}.
12 12
13 Entity escaping: {{ 'Drag&drop' | translate('entity-ts') }}. 13 Entity escaping: {{ 'Drag&drop' | translate('entity-ts') }}.
14 14
15 Entity escaping in links: {{ '<a href="http://foo.com/?a&b">Foo</a>' | translate ('entity-lnk') }}. 15 Entity escaping in links: {{ '<a href="http://foo.com/?a&b">Foo</a>' | translate ('entity-lnk') }}.
16
17 Translation string with href: {{ get_string('href_inside') }}.
16 </body> 18 </body>
17 </html> 19 </html>
OLDNEW
« no previous file with comments | « tests/test_site/locales/en/translate.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld