I'm trying to set up a translation tool to translate websites. What I want to do is import html-code
and get all translatable texts from that site.
One idea would be to use strip_tags
, but it would ignore strings that could be translated such as alt-texts, title-texts and probably others that I don't have on my mind yet. Is there a clean way to do this?