multilanguages icon indicating copy to clipboard operation
multilanguages copied to clipboard

How to preserve html tags

Open CPlusPlus17 opened this issue 5 years ago • 4 comments

Hello

Its there a way to preserve HTML tags within the language strings?

<!-- Translated -->
<label class="custom-control-label" style="" for="123">Some text &lt;span style="text-decoration: underline;"&gt;more&lt;/span&gt;*</label>
<!-- Original -->
<label class="custom-control-label" style="" for="123">Some text <span style="text-decoration: underline;">more</span>*</label>

Thanks Manuel

CPlusPlus17 avatar Sep 20 '20 12:09 CPlusPlus17

Hello

Its there a way to preserve HTML tags within the language strings?

<!-- Translated -->
<label class="custom-control-label" style="" for="123">Some text &lt;span style="text-decoration: underline;"&gt;more&lt;/span&gt;*</label>
<!-- Original -->
<label class="custom-control-label" style="" for="123">Some text <span style="text-decoration: underline;">more</span>*</label>

Thanks Manuel

Hello dear

Unfourtuentley this is not supported now! but it looks a great Idea I will move forward starting from this weekend. I will make sure to make it available within a week at most

Thanks for that nice suggestion

aksoftware98 avatar Sep 25 '20 01:09 aksoftware98

Hello Maybe a little late but I didi it like this the html tag is from mudblazor but another will also work :<MudText Class="mx-auto my-auto mt-5 mb-5" Typo="Typo.h6" Align="Align.Center">@((MarkupString)languageContainer.Keys["House"])</MudText> and in the yaml file : House: Our vacation home with all modern comfort is a great place to relax and unwind. hope this is what you asked for...

Stonne avatar Sep 22 '23 04:09 Stonne

Sorry copy and paste did not come out good : another try <MudText Class="mx-auto my-auto mt-5 mb-5" Typo="Typo.h6" Align="Align.Center">@((MarkupString)languageContainer.Keys["Welcome"])</MudText> and the yaml : House: Our vacation home with all modern comfort is a great place to relax and unwind.

Stonne avatar Sep 22 '23 04:09 Stonne

I hope it comes out good at your end it was ok until I clicked comment and then parts of the sentence was messed up

Stonne avatar Sep 22 '23 04:09 Stonne