I've been thinking about this for a while, and can't seem to find any way to do it despite the statement itself seeming obvious. The problem is:
Let $f:[0,1] \to \mathbb{R}^n$ be a continuous map, not necessarily injective, such that $f(0) \not = f(1)$. Let $Y$ denote the image of $f$ as a compact subset of $\mathbb{R}^n$. Then there exists an injective map $g:[0,1] \to Y$ such that $g(0) = f(0)$ and $g(1) = f(1)$.
Obviously, the problem is trivial in many cases, but gets tough when you consider "wild" curves. Below I'll discuss how I've tried to solve it, but feel free to ignore it if you know the answer.
My first idea was to start Zorn's lemma argument using a sequence of maps $f_0,f_1,f_2,f_3,\dots$ with $f_0 = f$ and $f_0([0,1]) \supseteq f_1([0,1]) \supseteq f_2([0,1]) \supseteq \cdots$ and trying to find a bound for the chain, but it seems this fails because given compact path-connected subsets $X_0,X_1,\dots$ where $X_0 \supseteq X_1 \supseteq \cdots$, the intersection $\bigcap_{k=1}^\infty X_k$ is not necessarily path connected. For example, if $S \subset \mathbb{R}^2$ is a segment of the (closed) topologist's sine curve, then the family $S \cup \bar{B}_{1/n}(0)$ provide a counterexample.
The other approach seemed to be trying to define a sequence of functions $f_0,f_1,\dots$ where each $f_n$ is "closer" to being injective than the one before it, and such that the sequence converges in some meaningful way to an injective function, or at least to a function that allows us to use a simpler method to finish the problem. However, I don't really know enough analysis to follow through with this approach, so I'm asking for help here. Any solution would be great, and solutions a method similar to what I've mentioned above would be doubly appreciated.