Home HTML <p> tag issue with simple translation
Reply: 0

HTML <p> tag issue with simple translation

user722 Published in April 21, 2018, 3:29 pm

So here is my actual code:

<p>Welcome to <span id="city"></span> !</p>

I am currently using this jQuery plugin to translate text in the client side.

So to be short, I need to set

<p class="trn" data-trn-key="welcome_message"><span id="city"></span></p>

This way the plugin will find the correct langage set by the user and then translate the entire < p >< / p > tag, the problem is that it totally erase my span ! so the result is

Welcome to **And no city here because the span has been erased by the translation**

Any Ideas ? Thank you !

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.301292 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO