Suppose $X$ is a metric space and $A$ is a subspace homeomorphic to $[0,1]$ with its usual topology. Let $v$ an end point of $A$, that is $v$ does not disconnect $A$. Is there a retraction $r$ from $X$ onto $A$ such that $r^{-1}(v)=\{v\}$? Thanks