More specifically, is it possible to somehow add to the exception everything that is in the angle brackets <>? Perhaps some kind of translator allows you to do this. Yandex and Google Translator tear tags sometimes by adding a space in brackets or uppercase. For example, it was <h3>Заголовок</h3> , it became < H3>header</ h3> .

1 answer 1

It is not clear a little ... but as far as I understand, you need to get rid of the tags in order to translate the text? If this is the case, then you need to parse on the server side using regular expressions.

UPDATE

As an option, you can push a ready translation into the property. And on the page of the site link to propered.

  • It is necessary that the translator did not pay attention to the tags and their attributes, and the output was translated text marked up with the same tags. - Black Fire
  • @Black Fire as you like this: replace each tag with a code symbol for example: <h1> </ h1> = @ text @ - Alexey Zemtsov