Closure of Image under Continuous Mapping is not necessarily Image of Closure

Theorem
Let $T_1 = \struct {S_1, \tau_1}$ and $T_2 = \struct {S_2, \tau_2}$ be topological spaces.

Let $H \subseteq S_1$ be a subset of $S_1$.

Let $\map \cl H$ denote the closure of $H$.

Let $f: T_1 \to T_2$ be a continuous mapping.

Then it is not necessarily the case that:
 * $f \sqbrk {\map \cl H} = \map \cl {f \sqbrk H}$

Proof
Proof by Counterexample:

Let $\R$ be the real numbers under the usual (Euclidean) topology.

Let $f: \R \to \R$ be the (real) hyperbolic tangent function:
 * $\forall x \in \R: \map f x = \tanh x$

It is accepted that $f$ is continuous.

Let $H \subseteq \R$ be the subset of $\R$ defined as:

As can be seen:
 * $f \sqbrk {\map \cl H} \ne \map \cl {f \sqbrk H}$