nikhilbchilwant / google-web-toolkit-incubator

Automatically exported from code.google.com/p/google-web-toolkit-incubator
1 stars 1 forks source link

Single quote becomes double quote in ui:msg, when surrounded by another HTML tag. #290

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What OS and browser are you using?
Any browser

Do you see this error in hosted mode, web mode, or both?
both

(If possible, please include a test case that shows the problem)
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'>
  <p><ui:msg description="Some text to translate">
    This is my text that I want to have translated with a singl' quote.
  </ui:msg></p>
  <p><ui:msg description="Some other text to translate">
    Some other text with a <a ui:field="justALink">link an' single 
quote</a>.
  </ui:msg></p>
  <p><ui:msg description="Some more text to translate">
    Some other text with a <span ui:field="justASpan">span an' single 
quote</span>.
  </ui:msg></p>
</ui:uiBinder>

Hopefully using the test case you have generously provided, what steps will 
reproduce the problem? 
1. Have UiBinder extract the message and display the text from the 
template.
2. There should appear a single quote in the text of the link.
3. Two single quotes are displayed.

What is the expected output? What do you see instead?
Only a single quote is shown.

Workaround if you have one:
-

Original issue reported on code.google.com by fniem...@gmail.com on 13 Jul 2009 at 1:18