tinoni / translate.js

A jQuery plugin to translate text in the client side
MIT License
87 stars 84 forks source link

Tag inside other does not work #9

Open sggonzalezg opened 8 years ago

sggonzalezg commented 8 years ago

Hi, I can't put a tag inside the tag

Example <h2 class="trn">Lorem Ipsum <span class="trn">dolor sit amet.</span></h2>

This is the output <h2 class="trn" data-trn-key="<span class="trn">Lorem Ipsum</span> dolor sit amet."><span class="trn">Lorem Ipsum </span>dolor sit amet.</h2>

how can I fix this?