We need to translate visible text content while preserving HTML tags exactly. So we need to output HTML with same tags and attributes, but text replaced with Japanese translation.
We must translate all text nodes, including inside , ,

, etc., also link text (the visible link text). Also the blockquote citation etc. Also the alt text? No alt attributes here. We must keep URLs unchanged. Let's go through. Original:
In 2008, a man named Ar... How much did Heinrich make out of this mobile application in 2008?
Translate that paragraph. Japanese translation: "2008年、アルミン・ハインリッヒという男性がユニークなモバイルアプリを作ることに決めました。しかしこれは普通のアプリではなく、前例のない、何もしないアプリでした。アプリが起動すると、画面中央に透き通ったルビーが表示され、アイコンを押すと大きな文字で次のテキストが表示されました:「I am rich,