dylanmac
July 17th, 2009, 06:31 PM
So I have a resource bundle with key/value pairs, e.g.
alert.NoPromoCodeRequired=No promotion code required.
If I wanted to bold, say, the "promotion code" phrase within the first sentence of the text value above, how would I accomplish that? Can I just dump html into the properties file, like so?
alert.NoPromoCodeRequired=No <span class="baseCopyEm">promotion code</span> required.
This strikes me as NOT a best practice but I canot find any guidance.
Conversely creating three separate key values ("No", "promotion code" and "required") pulling them each into the web page than applying html around the second text value does not seem like the way to go either.
Thanks.
alert.NoPromoCodeRequired=No promotion code required.
If I wanted to bold, say, the "promotion code" phrase within the first sentence of the text value above, how would I accomplish that? Can I just dump html into the properties file, like so?
alert.NoPromoCodeRequired=No <span class="baseCopyEm">promotion code</span> required.
This strikes me as NOT a best practice but I canot find any guidance.
Conversely creating three separate key values ("No", "promotion code" and "required") pulling them each into the web page than applying html around the second text value does not seem like the way to go either.
Thanks.