1) Let $X$ be a topological space, and let $A \subset X$. We say that the pair $(X,A)$ has the homotopy extension property if, given a homotopy $f_t\colon A \rightarrow Y$ and a map $\tilde{f}_0\colon X \rightarrow Y$ such that $\tilde{f}_0 |_A = f_0$, there exists an extension of $\tilde{f}_0$ to the homotopy $\tilde{f}_t\colon X \rightarrow Y$ such that $\tilde{f}_t|_A = f_t$.
Most textbooks states that this is equivalent to the following.
2) The pair $(X,A)$ has the homotopy extension property if any map $F\colon (X\times \{0\} \cup A\times I) \rightarrow Y$ can be extended to a map $F'\colon X\times I \rightarrow Y$(i.e. F and F' agree on their common domain).
I can see easily that $~~$ 1$\implies$2, but in showing that $~~$ 2$\implies$1, I construct the map G:$X\times \{0\} \cup A\times I\to Y$ such that G(x,o)= $\tilde{f}_0(x)$ $\forall$ x $\in X$ and G(a,t)= $f_t(a)$ $\forall$ a $\in A$ and t $\in I.$ I need to show that G is continuous but I can't use the gluing lemma since A is arbitrary. Can someone help me to solve this problem.