claudetech / node-static-i18n

HTML static pages i18n tool
https://www.npmjs.com/package/static-i18n
MIT License
102 stars 21 forks source link

Fixed lose of HTML when using data-t-interpolate & allowHtml #17

Closed alvarotrigo closed 6 years ago

alvarotrigo commented 6 years ago

HTML code would get lost when having something like this:

<p data-t data-t-interpolate>
  {{Test}}
    <br />Whatever<br />here<br /><br /><br /><br />
</p>

This solves the issue.

danhper commented 6 years ago

Great, thank you!

alvarotrigo commented 6 years ago

Was this change pushed to npm? It seems to be related with https://github.com/36web/gulp-static-i18n-html/issues/2#issuecomment-354390983

danhper commented 6 years ago

I just published as 0.1.21, sorry for the delay!

alvarotrigo commented 6 years ago

Thanks for that!