claudetech / node-static-i18n

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

img and input tag not closed correctly #34

Closed fcbflying closed 4 years ago

fcbflying commented 4 years ago

Hi, it seems the img and input tag are not closed correctly. This is my Example: `

test image`

And the output: <input type="text" name="age" value="12"> <img src="images/test.jpg" alt="test image">

After i18n compilation, their closing slash "/" are lost.

danhper commented 4 years ago

This is the expected behavior. There is a xml option which can be set to true if you want to have self-closing tags.