LimeSurvey/LimeSurvey — comment on commit 1f191d4ff9a14aedf1b5de24abcc929c16405f83
File:  line 0
By TMSWhite:

Note - Google Translate charges per character sent. So, although it won't translate the contents of HTML tags, if you send them, you'll get charged for processing them.

The changes from this commit does properly deal with the new EM syntax (so it uses the EM SplitStringOnExpessions() command to separate out expressions, and properly re-joins them.

If we want to reduce the translation cost, we could parse the string parts that do need to be returned for HTML (e.g. create a DOM object) and just pass the non-tag content; but then we'd need to properly re-construct the HTML based upon the return values.