문제

key={0}/{1} + {2}/{3}

The above value is defined in a resource bundle and is shown as HTML text in the user interface. The above demonstrates adding fractions and I would like to format this in HTML format. Would it be possible to do this in the resource bundle property file itself. If so, how should I do this?

도움이 되었습니까?

해결책

If I understand your needs correctly, then you can specify the formating in the resource file. For example add some html tags:

key=<i>{0}/{1}</i> + <b>{2}/{3}</b>

다른 팁

You can put your html code in your resource file. If you're using MessageFormat, quotes should be doubled though.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top