Replace the target HTML element by new one.

Todo

Extend documentation